(project_string_id)
| 50 | @Project_permissions.user_has_project( |
| 51 | ["allow_if_project_is_public", "admin", "Editor", "Viewer"]) |
| 52 | def project_checks_view(project_string_id): |
| 53 | """ |
| 54 | |
| 55 | """ |
| 56 | spec_list = [{"directory_id": int}] |
| 57 | log, input, untrusted_input = regular_input.master(request = request, |
| 58 | spec_list = spec_list) |
| 59 | if len(log["error"].keys()) >= 1: |
| 60 | return jsonify(log = log), 400 |
| 61 | |
| 62 | with sessionMaker.session_scope() as session: |
| 63 | |
| 64 | project = Project.get_project(session, project_string_id) |
| 65 | |
| 66 | directory = WorkingDir.get_with_fallback( |
| 67 | session = session, |
| 68 | directory_id = input['directory_id'], |
| 69 | project = project) |
| 70 | |
| 71 | if directory is False: |
| 72 | log['error']['directory'] = "No directory found" |
| 73 | return jsonify(log = log), 400 |
| 74 | |
| 75 | out = jsonify({}) |
| 76 | |
| 77 | return out, 200 |
| 78 | |
| 79 | |
| 80 | @routes.route('/api/project/<string:project_string_id>/transaction/ml/training/estimate', |
nothing calls this directly
no test coverage detected