Merge pull request #1732 from pypeclub/bugfix/1670_ftrack_sync_status

Ftrack sync status
This commit is contained in:
Jakub Trllo 2021-06-22 11:51:46 +02:00 committed by GitHub
commit 10658dcde8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -66,15 +66,7 @@ class VersionToTaskStatus(BaseEvent):
))
return
_status_mapping = event_settings["mapping"]
if not _status_mapping:
self.log.debug(
"Project \"{}\" does not have set mapping for {}".format(
project_name, self.__class__.__name__
)
)
return
_status_mapping = event_settings["mapping"] or {}
status_mapping = {
key.lower(): value
for key, value in _status_mapping.items()