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 0819cdc commit 64aa4d7Copy full SHA for 64aa4d7
tagstudio/src/core/query_lang/ast.py
@@ -4,13 +4,20 @@
4
5
class ConstraintType(Enum): # TODO add remaining ones
6
Tag = 0
7
- MediaType = 1
+ TagID = 1
8
+ MediaType = 2
9
+ FileType = 3
10
+ Path = 4
11
12
@staticmethod
13
def from_string(text: str) -> "ConstraintType":
- return {"tag": ConstraintType.Tag, "mediatype": ConstraintType.MediaType}.get(
- text.lower(), None
- )
14
+ return {
15
+ "tag": ConstraintType.Tag,
16
+ "tag_id": ConstraintType.TagID,
17
+ "mediatype": ConstraintType.MediaType,
18
+ "filetype": ConstraintType.FileType,
19
+ "path": ConstraintType.Path,
20
+ }.get(text.lower(), None)
21
22
23
class AST:
0 commit comments