Skip to content

Commit 1b8fb42

Browse files
committed
fix: make queries for non-hidden entries useable
1 parent 88d0b47 commit 1b8fb42

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/tagstudio/core/library/alchemy/library.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1041,7 +1041,9 @@ def search_library(
10411041
ast = search.ast
10421042

10431043
if not search.show_hidden_entries:
1044-
statement = statement.where(~Entry.tags.any(Tag.is_hidden))
1044+
statement = statement.where(
1045+
~Entry.id.in_(select(TagEntry.entry_id).join(Tag).where(Tag.is_hidden))
1046+
)
10451047

10461048
if ast:
10471049
start_time = time.time()

0 commit comments

Comments
 (0)