refac: search notes db query
This commit is contained in:
1 parent
68219d84a9
commit
3ed1df2e53
1 file changed
+3
-1
@@ -255,7 +255,9 @@ class NoteTable:
|
||||
query = query.filter(
|
||||
or_(
|
||||
Note.title.ilike(f"%{query_key}%"),
|
||||
Note.data["content"]["md"].ilike(f"%{query_key}%"),
|
||||
cast(Note.data["content"]["md"], Text).ilike(
|
||||
f"%{query_key}%"
|
||||
),
|
||||
)
|
||||
)
|
||||
|
||||
|
||||
Reference in new issue
Block a user