forked from rDrama/rDrama
1
0
Fork 0

use set in /<user>/comments (doesnt rly matter i just have OCD)

master
Aevann 2023-03-22 21:40:04 +02:00
parent 5b8da52ab8
commit 177ed092d0
1 changed files with 2 additions and 2 deletions

View File

@ -1027,7 +1027,7 @@ def u_username_comments(username, v=None):
next_exists = (len(comments) > PAGE_SIZE)
comments = comments[:PAGE_SIZE]
ids = [x.id for x in comments]
ids = set([x.id for x in comments])
listing = []
@ -1039,7 +1039,7 @@ def u_username_comments(username, v=None):
if x.id in ids: continue
listing.append(x)
ids += [x.id for x in listing]
ids.update([x.id for x in listing])
output = get_comments_v_properties(v, None, Comment.id.in_(ids))[1]