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:
return []
sync_nodes = Node.all({
'where': {'project': home_project_id,
'node_type': 'group',
'parent': sync_group['_id']},
'projection': {
'name': 1,
'_updated': 1,
}},
sync_nodes = Node.all(
{
'where': {'project': home_project_id,
'node_type': 'group',
'parent': sync_group['_id']},
'projection': {
'name': 1,
'_updated': 1,
},
'sort': [('_updated', -1)],
},
api=api)
sync_nodes = sync_nodes._items