aboutsummaryrefslogtreecommitdiff
path: root/api/social/search.py
diff options
context:
space:
mode:
Diffstat (limited to 'api/social/search.py')
-rw-r--r--api/social/search.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/api/social/search.py b/api/social/search.py
index a22ea73..f0ce8a2 100644
--- a/api/social/search.py
+++ b/api/social/search.py
@@ -17,8 +17,8 @@ def index():
# use levenshtein with max distance 3 to search for users
#TODO: use mysql and sort by best match
results = cursor.execute(
- "select user_id from users where levenshtein(lower(username), lower(?), 3)",
- [query]
+ "select user_id from users where levenshtein(lower(username), lower(?), 3)",
+ [query]
).fetchmany(20)
formatted = {"results": []}