diff mbox

notify: Send vote reminders to TUs that are also devs as well

Message ID 20180313200431.16463-1-johannes@kyriasis.com
State Accepted, archived
Headers show

Commit Message

Johannes Löthberg March 13, 2018, 8:04 p.m. UTC
Signed-off-by: Johannes Löthberg <johannes@kyriasis.com>
---
 aurweb/scripts/notify.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Lukas Fleischer March 13, 2018, 8:06 p.m. UTC | #1
On Tue, 13 Mar 2018 at 21:04:31, Johannes Löthberg wrote:
> Signed-off-by: Johannes Löthberg <johannes@kyriasis.com>
> ---
>  aurweb/scripts/notify.py | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> [...]

Good catch! Merged into pu, thanks!
diff mbox

Patch

diff --git a/aurweb/scripts/notify.py b/aurweb/scripts/notify.py
index 2d0f757..693abff 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()]