mirror of
https://github.com/TagStudioDev/TagStudio.git
synced 2026-02-01 23:59:10 +00:00
fix: path now uses GLOB operator for proper GLOBs
This commit is contained in:
@@ -27,7 +27,7 @@ class SQLBoolExpressionBuilder(BaseVisitor):
|
||||
elif node.type == ConstraintType.TagID:
|
||||
return Tag.id == int(node.value)
|
||||
elif node.type == ConstraintType.Path:
|
||||
return Entry.path.ilike(node.value.replace("*", "%"))
|
||||
return Entry.path.op("GLOB")(node.value)
|
||||
elif node.type == ConstraintType.MediaType:
|
||||
extensions: set[str] = set[str]()
|
||||
for media_cat in MediaCategories.ALL_CATEGORIES:
|
||||
|
||||
Reference in New Issue
Block a user