mirror of
https://github.com/ynput/ayon-core.git
synced 2026-01-01 16:34:53 +01:00
prepare task types before entities loop
This commit is contained in:
parent
f8b21a7795
commit
68e2648a4c
1 changed files with 5 additions and 0 deletions
|
|
@ -452,6 +452,11 @@ class SyncEntitiesFactory:
|
||||||
all_project_entities = self.session.query(
|
all_project_entities = self.session.query(
|
||||||
self.entities_query.format(ft_project_id)
|
self.entities_query.format(ft_project_id)
|
||||||
).all()
|
).all()
|
||||||
|
task_types = self.session.query("select id, name from Type").all()
|
||||||
|
task_type_names_by_id = {
|
||||||
|
task_type["id"]: task_type["name"]
|
||||||
|
for task_type in task_types
|
||||||
|
}
|
||||||
for entity in all_project_entities:
|
for entity in all_project_entities:
|
||||||
parent_id = entity["parent_id"]
|
parent_id = entity["parent_id"]
|
||||||
entity_type = entity.entity_type
|
entity_type = entity.entity_type
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue