remotes/1693045480750635534/spooky-22
Aevann1 2021-09-17 10:00:58 +02:00
parent 9a6fc86369
commit 6eab67f27f
1 changed files with 3 additions and 0 deletions

View File

@ -32,6 +32,8 @@ def notifications(v):
notifications = v.notifications.join(Notification.comment).filter(Comment.author_id == AUTOJANNY_ACCOUNT).order_by(Notification.id.desc()).offset(25 * (page - 1)).limit(26).all()
comments = []
t = time.time()
notifs = []
for index, x in enumerate(notifications):
@ -44,6 +46,7 @@ def notifications(v):
g.db.bulk_update_mappings(Notification, notifs)
g.db.commit()
print(time.time() - t)
next_exists = (len(comments) > 25)
listing = comments[:25]