Skip to content
Snippets Groups Projects
Commit 0752a18b authored by Jason Salyers's avatar Jason Salyers
Browse files

[JES] Loop through the array items

parent 6539261f
No related branches found
No related tags found
No related merge requests found
...@@ -210,7 +210,9 @@ async def append_statistics_to_post(post, row, is_pinned, observer=None, context ...@@ -210,7 +210,9 @@ async def append_statistics_to_post(post, row, is_pinned, observer=None, context
else: else:
post['blacklists'] = [] post['blacklists'] = []
if row['author'] in blacklists_for_user: if row['author'] in blacklists_for_user:
post['blacklists'].append(blacklists_for_user[row['author']]) blacklists = blacklists_for_user[row['author']]
for blacklist in blacklists:
post['blacklists'].append(blacklist)
reputation = int(row['author_rep']) reputation = int(row['author_rep'])
if reputation < 1: if reputation < 1:
post['blacklists'].append('reputation-0') post['blacklists'].append('reputation-0')
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment