mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-26 05:42:15 +01:00
skip processing if new status id is same as asset version already has
This commit is contained in:
parent
ee3e840e4a
commit
52eafcd668
1 changed files with 4 additions and 0 deletions
|
|
@ -243,6 +243,10 @@ class TaskToVersionStatus(BaseEvent):
|
|||
|
||||
new_status_id = new_asset_version_status["id"]
|
||||
new_status_name = new_asset_version_status["name"]
|
||||
# Skip if status is already same
|
||||
if asset_version["status_id"] == new_status_id:
|
||||
continue
|
||||
|
||||
# Change the status
|
||||
try:
|
||||
asset_version["status_id"] = new_status_id
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue