Skip to content

Commit cadab91

Browse files
committed
cleanup: Remove unused column in SELECT query
Leftover from the new `target_user` condition being a Python-side check with a different error message. Found by Copilot.
1 parent 3ab6707 commit cadab91

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

weasyl/shout.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ def insert(
7272
if parentid:
7373
# NOTE: Replying to deleted comments is intentionally allowed.
7474
parentuserid = d.engine.scalar(
75-
"SELECT userid, target_user FROM comments"
75+
"SELECT userid FROM comments"
7676
" WHERE commentid = %(parent)s"
7777
" AND target_user = %(target)s"
7878
" AND (settings ~ 's') = %(staffnotes)s",

0 commit comments

Comments
 (0)