diff options
author | Johannes Löthberg <johannes@kyriasis.com> | 2018-03-13 21:04:31 +0100 |
---|---|---|
committer | Lukas Fleischer <lfleischer@archlinux.org> | 2018-03-13 21:05:37 +0100 |
commit | 879db7012c1c77891895c227ab4094bea8a29ff1 (patch) | |
tree | 1e921c3c6dc730a16ff30e4b9a54168feaa2bf9d /aurweb | |
parent | ca6332de6e33be645e1abab3434237805b8f7dfa (diff) | |
download | aur-879db7012c1c77891895c227ab4094bea8a29ff1.tar.gz aur-879db7012c1c77891895c227ab4094bea8a29ff1.tar.xz |
notify: Send vote reminders to TUs that are also devs
Signed-off-by: Johannes Löthberg <johannes@kyriasis.com>
Signed-off-by: Lukas Fleischer <lfleischer@archlinux.org>
Diffstat (limited to 'aurweb')
-rwxr-xr-x | aurweb/scripts/notify.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/aurweb/scripts/notify.py b/aurweb/scripts/notify.py index 2d0f7575..693abffc 100755 --- a/aurweb/scripts/notify.py +++ b/aurweb/scripts/notify.py @@ -140,7 +140,7 @@ def get_request_recipients(conn, reqid): def get_tu_vote_reminder_recipients(conn, vote_id): cur = conn.execute('SELECT Email FROM Users ' + - 'WHERE AccountTypeID = 2 AND ID NOT IN ' + + 'WHERE AccountTypeID IN (2, 4) AND ID NOT IN ' + '(SELECT UserID FROM TU_Votes ' + 'WHERE TU_Votes.VoteID = ?)', [vote_id]) return [row[0] for row in cur.fetchall()] |