Fix route config
Fix fts search Log exceptions
This commit is contained in:
+1
-1
@@ -99,7 +99,7 @@ def find_location_by_name(conn: sqlite3.Connection, q: str) -> List[Location]:
|
||||
WHERE locations_search match :q
|
||||
ORDER BY country, city, region
|
||||
'''
|
||||
stmt = conn.execute(sql, {'q': f'%{q}%'})
|
||||
stmt = conn.execute(sql, {'q': f'{q}'})
|
||||
rows = stmt.fetchall()
|
||||
if not rows:
|
||||
return []
|
||||
|
||||
Reference in New Issue
Block a user