mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-24 21:04:40 +01:00
fix version update
This commit is contained in:
parent
6af601b784
commit
b591030d33
1 changed files with 3 additions and 3 deletions
|
|
@ -476,16 +476,16 @@ def update_container(container, version=-1):
|
|||
)
|
||||
if isinstance(version, HeroVersionType):
|
||||
new_version = ayon_api.get_hero_version_by_product_id(
|
||||
project_name, current_version["productId"], fields={"id"}
|
||||
project_name, current_version["productId"]
|
||||
)
|
||||
elif version == -1:
|
||||
new_version = ayon_api.get_last_version_by_product_id(
|
||||
project_name, current_version["productId"], fields={"id"}
|
||||
project_name, current_version["productId"]
|
||||
)
|
||||
|
||||
else:
|
||||
new_version = ayon_api.get_version_by_name(
|
||||
project_name, version, current_version["productId"], fields={"id"}
|
||||
project_name, version, current_version["productId"]
|
||||
)
|
||||
|
||||
if new_version is None:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue