mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-26 13:52:15 +01:00
Optimize slightly with projection
This commit is contained in:
parent
bd80df6084
commit
ed8ef0f538
1 changed files with 1 additions and 1 deletions
|
|
@ -29,7 +29,7 @@ def is_latest(representation):
|
|||
highest_version = io.find_one({
|
||||
"type": "version",
|
||||
"parent": version["parent"]
|
||||
}, sort=[("name", -1)])
|
||||
}, sort=[("name", -1)], projection={"name": True})
|
||||
|
||||
if version['name'] == highest_version['name']:
|
||||
return True
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue