fds
This commit is contained in:
parent
e566ed4b69
commit
20d8c90164
1 changed files with 0 additions and 2 deletions
|
@ -38,7 +38,6 @@ def unread(v):
|
||||||
@app.get("/notifications")
|
@app.get("/notifications")
|
||||||
@auth_required
|
@auth_required
|
||||||
def notifications(v):
|
def notifications(v):
|
||||||
t = time.time()
|
|
||||||
try: page = int(request.values.get('page', 1))
|
try: page = int(request.values.get('page', 1))
|
||||||
except: page = 1
|
except: page = 1
|
||||||
messages = request.values.get('messages')
|
messages = request.values.get('messages')
|
||||||
|
@ -148,7 +147,6 @@ def notifications(v):
|
||||||
|
|
||||||
if c not in listing: listing.append(c)
|
if c not in listing: listing.append(c)
|
||||||
|
|
||||||
print(time.time() - t)
|
|
||||||
if request.headers.get("Authorization"): return {"data":[x.json for x in listing]}
|
if request.headers.get("Authorization"): return {"data":[x.json for x in listing]}
|
||||||
|
|
||||||
return render_template("notifications.html",
|
return render_template("notifications.html",
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue