diff options
author | lonkaars <l.leblansch@gmail.com> | 2021-04-11 18:03:11 +0200 |
---|---|---|
committer | lonkaars <l.leblansch@gmail.com> | 2021-04-11 18:03:11 +0200 |
commit | deb09e5c749e3353c927d7fe94bbd35f25ff85ee (patch) | |
tree | 702ba982530aa98a96ddece365a32be842dae3c2 /api/social/search.py | |
parent | 28f104de9ae9abe4b42abafbf3865ede5687996c (diff) |
dprint yapf continuation align style edit
Diffstat (limited to 'api/social/search.py')
-rw-r--r-- | api/social/search.py | 4 |
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": []} |