fd
This commit is contained in:
parent
0dc5045052
commit
7b6f5d9def
1 changed files with 2 additions and 2 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue