mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-25 21:32:15 +01:00
fix OrderedDict creation
This commit is contained in:
parent
5cbea50376
commit
a98f5da986
3 changed files with 8 additions and 8 deletions
|
|
@ -332,10 +332,10 @@ class CustomAttributes(BaseAction):
|
|||
cust_attr_query.format(attr_def["id"])
|
||||
).all()
|
||||
for value in values:
|
||||
table_values = collections.OrderedDict((
|
||||
table_values = collections.OrderedDict([
|
||||
("configuration_id", hierarchical_attr["id"]),
|
||||
("entity_id", value["entity_id"])
|
||||
))
|
||||
])
|
||||
|
||||
session.recorded_operations.push(
|
||||
ftrack_api.operation.UpdateEntityOperation(
|
||||
|
|
|
|||
|
|
@ -303,10 +303,10 @@ class FtrackModule(
|
|||
# TODO add add permissions check
|
||||
# TODO add value validations
|
||||
# - value type and list items
|
||||
entity_key = collections.OrderedDict((
|
||||
entity_key = collections.OrderedDict([
|
||||
("configuration_id", configuration["id"])
|
||||
("entity_id", project_id)
|
||||
))
|
||||
])
|
||||
|
||||
session.recorded_operations.push(
|
||||
ftrack_api.operation.UpdateEntityOperation(
|
||||
|
|
|
|||
|
|
@ -1763,10 +1763,10 @@ class SyncEntitiesFactory:
|
|||
configuration_id = self.entities_dict[ftrack_id][
|
||||
"avalon_attrs_id"][CUST_ATTR_ID_KEY]
|
||||
|
||||
_entity_key = collections.OrderedDict({
|
||||
"configuration_id": configuration_id,
|
||||
"entity_id": ftrack_id
|
||||
})
|
||||
_entity_key = collections.OrderedDict([
|
||||
("configuration_id", configuration_id),
|
||||
("entity_id", ftrack_id)
|
||||
])
|
||||
|
||||
self.session.recorded_operations.push(
|
||||
ftrack_api.operation.UpdateEntityOperation(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue