Fix bug where group entities would be included in query considerations.

This commit is contained in:
AccentuSoft
2022-06-14 00:20:46 +03:00
parent 00dcaf3c1b
commit 079475bb6d

View File

@@ -38,6 +38,9 @@ class LQLQueryBuilder:
self.canvasesEntitiesDict = self.getCanvasesEntitiesDict(self.allCanvases)
self.allEntityFields, self.allEntities = self.getAllEntitiesAndFields()
# Re-define database entities to remove Group Entities
self.databaseEntities = set(self.allEntities.keys())
def getAllEntitiesAndFields(self) -> (set, list):
entitiesSnapshot = {entity: self.databaseSnapshot.nodes[entity] for entity in self.databaseSnapshot.nodes
if self.databaseSnapshot.nodes[entity].get('Entity Type') != 'EntityGroup'}