MCPcopy Index your code
hub / github.com/diffgram/diffgram / branch_list_view

Function branch_list_view

default/methods/project/view_project.py:120–134  ·  view source on GitHub ↗

(project_string_id)

Source from the content-addressed store, hash-verified

118 "Editor",
119 "Viewer"])
120def branch_list_view(project_string_id):
121 """
122
123 """
124
125 with sessionMaker.session_scope() as session:
126 project = Project.get_project(session, project_string_id)
127
128 if project is not None:
129
130 out = jsonify(branch_list = project.serialize_branch_list())
131 else:
132 out = jsonify({"none_found": True})
133
134 return out, 200, {'ContentType': 'application/json'}
135
136
137@routes.route('/api/project/<string:project_string_id>/annotation_project/checks',

Callers

nothing calls this directly

Calls 2

serialize_branch_listMethod · 0.80
get_projectMethod · 0.45

Tested by

no test coverage detected