Skip to content

Commit

Permalink
Fix removal of blocked account e-mail domains for Python 3 (#1386)
Browse files Browse the repository at this point in the history
I refuse to write a regression test for this

Codecov reports all changed lines as covered in this PR, which seems to be a bug caused by changing a line other than the first in a multi-line statement.
  • Loading branch information
charmander authored Dec 4, 2023
1 parent c21b6d8 commit 0971e69
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 0971e69

Please sign in to comment.