replaced CustomAttributeValue with ContextCustomAttributeValue in queries to get all attributes

This commit is contained in:
iLLiCiTiT 2019-11-20 19:49:52 +01:00
parent 4201ba173d
commit 256377c36f
2 changed files with 4 additions and 4 deletions

View file

@ -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)
}])

View file

@ -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)
}])