mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-24 21:04:40 +01:00
replaced CustomAttributeValue with ContextCustomAttributeValue in queries to get all attributes
This commit is contained in:
parent
4201ba173d
commit
256377c36f
2 changed files with 4 additions and 4 deletions
|
|
@ -585,7 +585,7 @@ class SyncEntitiesFactory:
|
|||
])
|
||||
|
||||
cust_attr_query = (
|
||||
"select value, entity_id from CustomAttributeValue "
|
||||
"select value, entity_id from ContextCustomAttributeValue "
|
||||
"where entity_id in ({}) and configuration.key in ({})"
|
||||
)
|
||||
[values] = self.session._call([{
|
||||
|
|
@ -649,7 +649,7 @@ class SyncEntitiesFactory:
|
|||
[values] = self.session._call([{
|
||||
"action": "query",
|
||||
"expression": (
|
||||
"select value, entity_id from CustomAttributeValue "
|
||||
"select value, entity_id from ContextCustomAttributeValue "
|
||||
"where entity_id in ({}) and configuration.key in ({})"
|
||||
).format(entity_ids_joined, attributes_joined)
|
||||
}])
|
||||
|
|
|
|||
|
|
@ -585,7 +585,7 @@ class SyncEntitiesFactory:
|
|||
])
|
||||
|
||||
cust_attr_query = (
|
||||
"select value, entity_id from CustomAttributeValue "
|
||||
"select value, entity_id from ContextCustomAttributeValue "
|
||||
"where entity_id in ({}) and configuration.key in ({})"
|
||||
)
|
||||
[values] = self.session._call([{
|
||||
|
|
@ -649,7 +649,7 @@ class SyncEntitiesFactory:
|
|||
[values] = self.session._call([{
|
||||
"action": "query",
|
||||
"expression": (
|
||||
"select value, entity_id from CustomAttributeValue "
|
||||
"select value, entity_id from ContextCustomAttributeValue "
|
||||
"where entity_id in ({}) and configuration.key in ({})"
|
||||
).format(entity_ids_joined, attributes_joined)
|
||||
}])
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue