This commit is contained in:
Aevann1 2021-09-13 16:37:20 +02:00
parent 447c941eeb
commit 33e211296c

View file

@ -371,7 +371,7 @@ class User(Base, Stndrd, Age_times):
@cache.memoize(timeout=86400) @cache.memoize(timeout=86400)
def notification_messages(self, page=1): def notification_messages(self, page=1):
comments = g.db.query(Comment).filter(or_(Comment.author_id==self.id, Comment.sentto==self.id), Comment.parent_submission == None).order_by(Comment.created_utc.desc(), not_(Comment.child_comments.any())).offset(25*(page-1)).limit(26).all() comments = g.db.query(Comment.id).filter(or_(Comment.author_id==self.id, Comment.sentto==self.id), Comment.parent_submission == None).order_by(Comment.created_utc.desc(), not_(Comment.child_comments.any())).offset(25*(page-1)).limit(26).all()
return comments return comments