fds
This commit is contained in:
parent
209cb457cd
commit
012545f289
1 changed files with 1 additions and 6 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue