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

Function update_sequence

default/methods/video/sequence.py:210–231  ·  view source on GitHub ↗
(
    project_string_id,
    video_file_id,
    sequence_id)

Source from the content-addressed store, hash-verified

208 methods = ['POST'])
209@Project_permissions.user_has_project(["admin", "Editor"])
210def 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>'

Callers

nothing calls this directly

Calls 3

update_sequence_sharedFunction · 0.85
get_by_id_and_projectMethod · 0.80
getMethod · 0.45

Tested by

no test coverage detected