Allow like parameters in database queries
This commit is contained in:
parent
67d6b1e724
commit
f4f0e2afa8
2 changed files with 7 additions and 0 deletions
|
@ -49,6 +49,8 @@ class DbCursor:
|
|||
else:
|
||||
if key.startswith("not__"):
|
||||
query_wheres.append(key.replace("not__", "") + " != ?")
|
||||
elif key.endswith("__like"):
|
||||
query_wheres.append(key.replace("__like", "") + " LIKE ?")
|
||||
elif key.endswith(">"):
|
||||
query_wheres.append(key.replace(">", "") + " > ?")
|
||||
elif key.endswith("<"):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue