fds
This commit is contained in:
parent
9e4797d1f1
commit
2098295cad
1 changed files with 1 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):
|
||||||
sex = time.time()
|
|
||||||
t = time.time()
|
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
|
||||||
|
@ -91,7 +90,7 @@ def notifications(v):
|
||||||
|
|
||||||
next_exists = (len(notifications) > len(listing))
|
next_exists = (len(notifications) > len(listing))
|
||||||
else:
|
else:
|
||||||
print("1: " + str(time.time()-t))
|
print("1: " + str(time.time()-sex))
|
||||||
t = time.time()
|
t = time.time()
|
||||||
|
|
||||||
sq = g.db.query(Comment.id, Notification.created_utc).join(Notification, Notification.comment_id == Comment.id).distinct(Comment.top_comment_id).filter(
|
sq = g.db.query(Comment.id, Notification.created_utc).join(Notification, Notification.comment_id == Comment.id).distinct(Comment.top_comment_id).filter(
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue