mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-24 21:04:40 +01:00
Revert "Fix update to latest - it now updates to latest instead of hero version"
This reverts commit 7b5b2a980c.
This commit is contained in:
parent
7b5b2a980c
commit
7f83a62192
1 changed files with 4 additions and 9 deletions
|
|
@ -479,15 +479,10 @@ def update_container(container, version=-1):
|
|||
project_name, current_version["productId"]
|
||||
)
|
||||
elif version == -1:
|
||||
# TODO: Use `ayon_api.get_last_version_by_product_id` when fixed
|
||||
# to not return hero versions instead of the last version
|
||||
new_version = next(ayon_api.get_versions(
|
||||
project_name,
|
||||
product_ids=[current_version["productId"]],
|
||||
standard=True,
|
||||
hero=False,
|
||||
latest=True,
|
||||
), None)
|
||||
new_version = ayon_api.get_last_version_by_product_id(
|
||||
project_name, current_version["productId"]
|
||||
)
|
||||
|
||||
else:
|
||||
new_version = ayon_api.get_version_by_name(
|
||||
project_name, version, current_version["productId"]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue