This commit is contained in:
Aevann1 2022-04-04 02:46:06 +02:00
parent 209cb457cd
commit 012545f289

View file

@ -125,12 +125,9 @@ def notifications(v):
Comment.body_html.notlike('<html><body><p>New rdrama mention: <a href="https://old.reddit.com/r/%')
).order_by(Comment.top_comment_id.desc()).all()]
print("3: " + str(time.time() - t), flush=True)
comms = get_comments(list(cids), v=v)
print("4: " + str(time.time() - t), flush=True)
listing = []
for c in comments:
if c.parent_submission:
@ -144,8 +141,6 @@ def notifications(v):
c.replies2 = c.child_comments.filter(or_(Comment.author_id == v.id, Comment.id.in_(cids))).all()
for x in c.replies2:
if x.replies2 == None: x.replies2 = []
cids.add(c.id)
else:
while c.parent_comment:
c = c.parent_comment