dffd
This commit is contained in:
parent
0cf4572f51
commit
fcc68da7c0
1 changed files with 5 additions and 1 deletions
|
@ -285,7 +285,11 @@ def get_comments(cids, v=None, load_parent=False, **kwargs):
|
|||
|
||||
output = [x[0] for x in query]
|
||||
for i in range(len(output)):
|
||||
if query[i][1] != None: output[i]._voted = query[i][1].vote_type
|
||||
if query[i][1] != None:
|
||||
try: output[i]._voted = query[i][1].vote_type
|
||||
except:
|
||||
print(query[i][1])
|
||||
output[i]._voted = 0
|
||||
else: output[i]._voted = 0
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue