(
project_string_id,
video_file_id,
sequence_id)
| 208 | methods = ['POST']) |
| 209 | @Project_permissions.user_has_project(["admin", "Editor"]) |
| 210 | def update_sequence( |
| 211 | project_string_id, |
| 212 | video_file_id, |
| 213 | sequence_id): |
| 214 | log, input, untrusted_input = regular_input.master(request = request, |
| 215 | spec_list = update_sequence_spec_list) |
| 216 | if len(log["error"].keys()) >= 1: |
| 217 | return jsonify(log = log), 400 |
| 218 | |
| 219 | with sessionMaker.session_scope() as session: |
| 220 | |
| 221 | project = Project.get(session, project_string_id) |
| 222 | |
| 223 | file = File.get_by_id_and_project( |
| 224 | session = session, |
| 225 | project_id = project.id, |
| 226 | file_id = video_file_id) |
| 227 | |
| 228 | if file is None: return "error security check if file access file failed" |
| 229 | |
| 230 | return update_sequence_shared( |
| 231 | session, project, file.id, sequence_id, input['mode'], input['payload']) |
| 232 | |
| 233 | |
| 234 | @routes.route('/api/v1/task/<int:task_id>' |
nothing calls this directly
no test coverage detected