mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-25 05:14:40 +01:00
fix version entity manipulation
This commit is contained in:
parent
bf0d3477d9
commit
646c0df474
1 changed files with 2 additions and 2 deletions
|
|
@ -1539,11 +1539,11 @@ class PlaceholderLoadMixin(object):
|
|||
version_mapping = version_mapping_by_product_id.setdefault(
|
||||
product_id, {}
|
||||
)
|
||||
version_mapping[version].append(repre_context)
|
||||
version_mapping.setdefault(version, []).append(repre_context)
|
||||
|
||||
output = []
|
||||
for version_mapping in version_mapping_by_product_id.values():
|
||||
last_version = tuple(sorted(version_mapping.keys()))[-1]
|
||||
last_version = max(version_mapping.keys())
|
||||
output.extend(version_mapping[last_version])
|
||||
return output
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue