From e57368d141fa64ef028c64ead46b45120f144959 Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Sun, 2 Jan 2022 02:15:55 +0200 Subject: [PATCH] fds --- files/routes/search.py | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/files/routes/search.py b/files/routes/search.py index 26639f56c..98a2f272c 100644 --- a/files/routes/search.py +++ b/files/routes/search.py @@ -281,7 +281,8 @@ def searchcomments(v): @app.get("/search/users") @auth_desired def searchusers(v): - + if not v or v.oldsite: template = '' + else: template = 'CHRISTMAS/' query = request.values.get("q", '').strip() @@ -302,8 +303,4 @@ def searchusers(v): next_exists=(len(users)>25) users=users[:25] - - if request.headers.get("Authorization"): return [x.json for x in users] - if not v or v.oldsite: template = '' - else: template = 'CHRISTMAS/' return render_template(f"{template}search_users.html", v=v, query=query, total=total, page=page, users=users, sort=sort, t=t, next_exists=next_exists) \ No newline at end of file