sfd
This commit is contained in:
parent
eb1dece08f
commit
5c1c501614
1 changed files with 3 additions and 1 deletions
|
@ -38,7 +38,7 @@ def unread(v):
|
||||||
@app.get("/notifications")
|
@app.get("/notifications")
|
||||||
@auth_required
|
@auth_required
|
||||||
def notifications(v):
|
def notifications(v):
|
||||||
t = time.time()
|
t = sex = 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')
|
||||||
|
@ -169,6 +169,8 @@ def notifications(v):
|
||||||
|
|
||||||
print("7: " + str(time.time()-t))
|
print("7: " + str(time.time()-t))
|
||||||
|
|
||||||
|
print("all: " + str(time.time()-sex))
|
||||||
|
|
||||||
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