remotes/1693045480750635534/spooky-22
Aevann1 2022-04-04 01:56:05 +02:00
parent aab658a899
commit 6a2d51fad4
1 changed files with 2 additions and 2 deletions

View File

@ -108,7 +108,7 @@ def notifications(v):
Comment.deleted_utc == 0,
Comment.author_id != AUTOJANNY_ID,
Comment.body_html.notlike('<html><body><p>New rdrama mention: <a href="https://old.reddit.com/r/%')
).order_by(Comment.top_comment_id.desc()).limit(50 + 50*page).all()
).order_by(Comment.top_comment_id.desc()).limit(25).all()
print("2: " + str(time.time() - t), flush=True)
@ -130,7 +130,7 @@ def notifications(v):
for c in comments:
if c.parent_submission:
if not c.replies2:
c.replies2 = c.child_comments.filter(or_(Comment.author_id == v.id, Comment.id.in_(all))).all()
c.replies2 = c.child_comments.filter(or_(Comment.author_id == v.id)).all()
cids = cids | set(x.id for x in c.replies2)
while c.parent_comment and (c.parent_comment.author_id == v.id or c.parent_comment in comments):
c = c.parent_comment