We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b3bd772 commit d44ec5dCopy full SHA for d44ec5d
src/tagstudio/core/library/alchemy/library.py
@@ -1474,7 +1474,12 @@ def get_tag_hierarchy(
1474
current_tag_ids.add(tag_parent.child_id)
1475
current_tag_ids = current_tag_ids.difference(all_tag_ids)
1476
1477
- statement = select(Tag).where(Tag.id.in_(all_tag_ids)).options(noload(Tag.parent_tags))
+ statement = select(Tag).where(Tag.id.in_(all_tag_ids))
1478
+ statement = statement.options(
1479
+ noload(Tag.parent_tags),
1480
+ selectinload(Tag.aliases),
1481
+ joinedload(Tag.color)
1482
+ )
1483
tags = session.scalars(statement).fetchall()
1484
for tag in tags:
1485
all_tags[tag.id] = tag
0 commit comments