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

[JES] Missing a step when checking names returned from db call

parent d064dad2
No related branches found
No related tags found
No related merge requests found
...@@ -92,9 +92,10 @@ class Mutes: ...@@ -92,9 +92,10 @@ class Mutes:
db = context['db'] db = context['db']
sql = GET_BLACKLISTED_ACCOUNTS sql = GET_BLACKLISTED_ACCOUNTS
sql_result = await db.query_all(sql, observer=name) sql_result = await db.query_all(sql, observer=observer)
for row in sql_result: for row in sql_result:
blacklists_for_user.append(row['source']) if row['name'] == name:
blacklists_for_user.append(row['source'])
if int(rep) < 1: if int(rep) < 1:
blacklists_for_user.append('reputation-0') blacklists_for_user.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