Skip to content

Commit

Permalink
Fix removal of blocked account e-mail domains for Python 3
Browse files Browse the repository at this point in the history
I refuse to write a regression test for this
  • Loading branch information
charmander committed Dec 4, 2023
1 parent c21b6d8 commit dce061d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion weasyl/controllers/director.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ def directorcontrol_emailblacklist_post_(request):
# Remove entr(y|ies) from blacklist
if action == "remove":
d.engine.execute("DELETE FROM emailblacklist WHERE id = ANY (%(selected_ids)s)",
selected_ids=map(int, remove_selection))
selected_ids=list(map(int, remove_selection)))

# Add any entries to blacklist, if any in form.domain_name; duplicate entries are silently discarded.
elif action == "add" and domain_name:
Expand Down

0 comments on commit dce061d

Please sign in to comment.