Order shots by their cut-in timestamp.
This commit is contained in:
@@ -42,7 +42,11 @@ def for_project(project, attract_props, task_id=None, shot_id=None):
|
||||
'where': {
|
||||
'project': project['_id'],
|
||||
'node_type': node_type_shot['name'],
|
||||
}}, api=api)
|
||||
},
|
||||
'sort': [
|
||||
('properties.cut_in_timeline_in_frames', 1),
|
||||
]
|
||||
}, api=api)
|
||||
shots = found['_items']
|
||||
|
||||
tasks_for_shots = current_attract.shot_manager.tasks_for_shots(
|
||||
@@ -66,7 +70,6 @@ def for_project(project, attract_props, task_id=None, shot_id=None):
|
||||
@perproject_blueprint.route('/<shot_id>')
|
||||
@attract_project_view(extension_props=True)
|
||||
def view_shot(project, attract_props, shot_id):
|
||||
|
||||
if not request.is_xhr:
|
||||
return for_project(project, attract_props, shot_id=shot_id)
|
||||
|
||||
|
Reference in New Issue
Block a user