Skip to content

Commit

Permalink
fix: remove uncecessary line that broke search when searching for exa…
Browse files Browse the repository at this point in the history
…ct name
  • Loading branch information
Computerdores committed Nov 28, 2024
1 parent 7610d39 commit 88b0200
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions tagstudio/src/core/library/alchemy/visitors.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
from sqlalchemy import and_, or_
from sqlalchemy.orm import aliased
from sqlalchemy.sql.expression import ColumnExpressionArgument
from src.core.media_types import MediaCategories
from src.core.query_lang import BaseVisitor
Expand All @@ -24,7 +23,6 @@ def visit_constraint(self, node: Constraint) -> ColumnExpressionArgument:
Tag.name.ilike(node.value),
Tag.shorthand.ilike(node.value),
TagAlias.name.ilike(node.value),
aliased(Tag).name.ilike(node.value),
)
elif node.type == ConstraintType.TagID:
return Tag.id == int(node.value)
Expand Down

0 comments on commit 88b0200

Please sign in to comment.