forked from rDrama/rDrama
1
0
Fork 0
master
Aevann1 2021-08-31 18:26:17 +02:00
parent a2a20648bd
commit bb54289575
2 changed files with 4 additions and 2 deletions

View File

@ -355,7 +355,8 @@ class User(Base, Stndrd, Age_times):
if self.admin_level == 6: comments = g.db.query(Comment).filter(or_(Comment.author_id==self.id, Comment.sentto==self.id, Comment.sentto==0)).filter(Comment.parent_submission == None).order_by(Comment.created_utc.desc()).limit(200).all()
else: comments = g.db.query(Comment).filter(or_(Comment.author_id==self.id, Comment.sentto==self.id)).filter(Comment.parent_submission == None).order_by(Comment.created_utc.desc()).limit(200).all()
comments = [c for c in comments if c.child_comments == []]
comments = [c.id for c in comments if c.child_comments == []]
firstrange = 25 * (page - 1)
secondrange = firstrange + 26

View File

@ -23,7 +23,8 @@ def notifications(v):
if messages:
cids = v.notification_messages(page=page)
next_exists = (len(cids) == 26)
comments = cids[:25]
cid = cids[:25]
comments = get_comments(cids, v=v)
elif posts:
cids = v.notification_subscriptions(page=page)
next_exists = (len(cids) == 26)