fds
This commit is contained in:
parent
34dde37f90
commit
6ab05c3bea
1 changed files with 2 additions and 5 deletions
|
@ -281,7 +281,8 @@ def searchcomments(v):
|
||||||
@app.get("/search/users")
|
@app.get("/search/users")
|
||||||
@auth_desired
|
@auth_desired
|
||||||
def searchusers(v):
|
def searchusers(v):
|
||||||
|
if not v or v.oldsite: template = ''
|
||||||
|
else: template = 'CHRISTMAS/'
|
||||||
|
|
||||||
query = request.values.get("q", '').strip()
|
query = request.values.get("q", '').strip()
|
||||||
|
|
||||||
|
@ -302,8 +303,4 @@ def searchusers(v):
|
||||||
next_exists=(len(users)>25)
|
next_exists=(len(users)>25)
|
||||||
users=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)
|
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)
|
Loading…
Add table
Add a link
Reference in a new issue