MCPcopy Create free account
hub / github.com/diffgram/diffgram / annotation_project_view

Function annotation_project_view

default/methods/project/view_project.py:140–153  ·  view source on GitHub ↗
(project_string_id)

Source from the content-addressed store, hash-verified

138 methods = ['GET'])
139@Project_permissions.user_has_project(["admin"])
140def annotation_project_view(project_string_id):
141 with sessionMaker.session_scope() as s:
142 project = Project.get_project(s, project_string_id)
143
144 if project is not None:
145
146 # TODO get cost estimate
147 # new_estimate = # something
148
149 out = jsonify(project = project.serialize())
150 else:
151 out = jsonify({"none_found": True})
152
153 return out, 200, {'ContentType': 'application/json'}

Callers

nothing calls this directly

Calls 2

get_projectMethod · 0.45
serializeMethod · 0.45

Tested by

no test coverage detected