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

Function project_ml_estimate_view

default/methods/project/view_project.py:85–111  ·  view source on GitHub ↗

(project_string_id)

Source from the content-addressed store, hash-verified

83 "Editor",
84 "Viewer"])
85def project_ml_estimate_view(project_string_id):
86 """
87
88 """
89
90 with sessionMaker.session_scope() as session:
91 project = Project.get_project(session, project_string_id)
92
93 if project is not None:
94
95 # Temp estimate here since we aren't using ml transactions
96
97 new_estimate = {
98 "costs": {
99 "Standard": 1
100 },
101 "time": {
102 "Standard": 90
103 }
104 }
105
106 out = jsonify(success = True,
107 new_estimate = new_estimate)
108 else:
109 out = jsonify({"none_found": True})
110
111 return out, 200, {'ContentType': 'application/json'}
112
113
114@routes.route('/api/project/<string:project_string_id>/branch/list',

Callers

nothing calls this directly

Calls 1

get_projectMethod · 0.45

Tested by

no test coverage detected