remotes/1693045480750635534/spooky-22
Aevann1 2021-09-17 10:19:43 +02:00
parent 0c7e16854f
commit 32f82c6364
1 changed files with 2 additions and 2 deletions

View File

@ -27,7 +27,7 @@ def notifications(v):
next_exists = (len(comments) > 25)
comments = comments[:25]
elif posts:
notifications = v.notifications.join(Notification.comment).filter(Comment.author_id == AUTOJANNY_ACCOUNT).order_by(Notification.id.desc()).offset(25 * (page - 1)).limit(26).all()
notifications = v.notifications.options(lazyload('*')).join(Notification.comment).filter(Comment.author_id == AUTOJANNY_ACCOUNT).order_by(Notification.id.desc()).offset(25 * (page - 1)).limit(26).all()
comments = []
@ -46,7 +46,7 @@ def notifications(v):
listing = comments[:25]
else:
notifications = v.notifications.join(Notification.comment).filter(
notifications = v.notifications.options(lazyload('*')).join(Notification.comment).filter(
Comment.is_banned == False,
Comment.deleted_utc == 0,
Comment.author_id != AUTOJANNY_ACCOUNT,