mirror of
https://github.com/ynput/ayon-core.git
synced 2026-01-01 16:34:53 +01:00
hound fixes
This commit is contained in:
parent
c76e5c9acc
commit
c136e5cb08
2 changed files with 6 additions and 7 deletions
|
|
@ -37,12 +37,9 @@ class DelAvalonIdFromNew(BaseEvent):
|
||||||
entity_id
|
entity_id
|
||||||
)
|
)
|
||||||
|
|
||||||
cust_attr = ftrack_entity['custom_attributes'][
|
cust_attrs = ftrack_entity["custom_attributes"]
|
||||||
CUST_ATTR_ID_KEY
|
if cust_attrs[CUST_ATTR_ID_KEY]:
|
||||||
]
|
cust_attrs[CUST_ATTR_ID_KEY] = ""
|
||||||
|
|
||||||
if cust_attr != '':
|
|
||||||
ftrack_entity['custom_attributes'][CUST_ATTR_ID_KEY] = ''
|
|
||||||
session.commit()
|
session.commit()
|
||||||
|
|
||||||
except Exception:
|
except Exception:
|
||||||
|
|
|
||||||
|
|
@ -1124,7 +1124,9 @@ class SyncEntitiesFactory:
|
||||||
continue
|
continue
|
||||||
|
|
||||||
_entity_dict = self.entities_dict[_ftrack_id]
|
_entity_dict = self.entities_dict[_ftrack_id]
|
||||||
_mongo_id = _entity_dict["avalon_attrs"][CUST_ATTR_ID_KEY]
|
_mongo_id = (
|
||||||
|
_entity_dict["avalon_attrs"][CUST_ATTR_ID_KEY]
|
||||||
|
)
|
||||||
_av_ent_by_mongo_id = self.avalon_ents_by_id.get(
|
_av_ent_by_mongo_id = self.avalon_ents_by_id.get(
|
||||||
_mongo_id
|
_mongo_id
|
||||||
)
|
)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue