Fixing team search
This commit is contained in:
parent
41812e786d
commit
c575c71096
|
@ -311,7 +311,7 @@ def search_teams(search_string):
|
||||||
conn = create_connection()
|
conn = create_connection()
|
||||||
if conn is not None:
|
if conn is not None:
|
||||||
c = conn.cursor()
|
c = conn.cursor()
|
||||||
c.execute("SELECT team_json_string FROM teams WHERE name LIKE ?",(f"%{search_string}%"),)
|
c.execute("SELECT team_json_string FROM teams WHERE name LIKE ?",(re.sub('[^A-Za-z0-9 %]+', '', f"%{search_string}%"),))
|
||||||
team_json_strings = c.fetchall()
|
team_json_strings = c.fetchall()
|
||||||
conn.close()
|
conn.close()
|
||||||
return team_json_strings
|
return team_json_strings
|
||||||
|
|
Loading…
Reference in New Issue
Block a user