mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-27 14:22:37 +01:00
add previous behaviour as default
This commit is contained in:
parent
c271c94bbe
commit
6d1b064d0b
1 changed files with 6 additions and 7 deletions
|
|
@ -62,9 +62,12 @@ class VersionToTaskStatus(BaseEvent):
|
|||
|
||||
# Lower version status name and check if has mapping
|
||||
version_status = version_status_orig.lower()
|
||||
new_status_names = status_mapping.get(version_status)
|
||||
if not new_status_names:
|
||||
continue
|
||||
new_status_names = []
|
||||
mapped = status_mapping.get(version_status)
|
||||
if mapped:
|
||||
new_status_names.extend(list(mapped))
|
||||
|
||||
new_status_names.append(version_status)
|
||||
|
||||
self.log.debug(
|
||||
"Processing AssetVersion status change: [ {} ]".format(
|
||||
|
|
@ -72,10 +75,6 @@ class VersionToTaskStatus(BaseEvent):
|
|||
)
|
||||
)
|
||||
|
||||
# Backwards compatibility (convert string to list)
|
||||
if isinstance(new_status_names, str):
|
||||
new_status_names = [new_status_names]
|
||||
|
||||
# Lower all names from presets
|
||||
new_status_names = [name.lower() for name in new_status_names]
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue