(project_string_id)
| 83 | "Editor", |
| 84 | "Viewer"]) |
| 85 | def 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', |
nothing calls this directly
no test coverage detected