Home project: sort synced Blender versions by _updated
This commit is contained in:
parent
157eed8321
commit
8c0c22d801
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user