Home project: sort synced Blender versions by _updated

This commit is contained in:
Sybren A. Stüvel 2018-04-09 13:41:08 +02:00
parent 157eed8321
commit 8c0c22d801

View File

@ -197,14 +197,17 @@ def synced_blender_versions(home_project_id, api):
if not sync_group: if not sync_group:
return [] return []
sync_nodes = Node.all({ sync_nodes = Node.all(
'where': {'project': home_project_id, {
'node_type': 'group', 'where': {'project': home_project_id,
'parent': sync_group['_id']}, 'node_type': 'group',
'projection': { 'parent': sync_group['_id']},
'name': 1, 'projection': {
'_updated': 1, 'name': 1,
}}, '_updated': 1,
},
'sort': [('_updated', -1)],
},
api=api) api=api)
sync_nodes = sync_nodes._items sync_nodes = sync_nodes._items