mirror of
https://gitlab.archlinux.org/archlinux/aurweb.git
synced 2025-02-03 10:43:03 +01:00
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>
This commit is contained in:
parent
ca6332de6e
commit
879db7012c
1 changed files with 1 additions and 1 deletions
|
@ -140,7 +140,7 @@ def get_request_recipients(conn, reqid):
|
||||||
|
|
||||||
def get_tu_vote_reminder_recipients(conn, vote_id):
|
def get_tu_vote_reminder_recipients(conn, vote_id):
|
||||||
cur = conn.execute('SELECT Email FROM Users ' +
|
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 ' +
|
'(SELECT UserID FROM TU_Votes ' +
|
||||||
'WHERE TU_Votes.VoteID = ?)', [vote_id])
|
'WHERE TU_Votes.VoteID = ?)', [vote_id])
|
||||||
return [row[0] for row in cur.fetchall()]
|
return [row[0] for row in cur.fetchall()]
|
||||||
|
|
Loading…
Add table
Reference in a new issue