Fix some deprecations and factor out a helper function (#387)
This commit is contained in:
parent
4bdfe28a35
commit
b46ada9f72
12 changed files with 59 additions and 44 deletions
4
files/helpers/strings.py
Normal file
4
files/helpers/strings.py
Normal file
|
@ -0,0 +1,4 @@
|
|||
|
||||
# clean strings for searching
|
||||
def sql_ilike_clean(my_str):
|
||||
return my_str.replace(r'\\', '').replace('_', r'\_').replace('%', '').strip()
|
Loading…
Add table
Add a link
Reference in a new issue