mirror of
https://gitlab.archlinux.org/archlinux/aurweb.git
synced 2025-02-03 10:43:03 +01:00
Exclude suspended Users from being notified
The existing notify.py script was grabbing entries regardless of user suspension. This has been modified to only send notifications to unsuspended users. This change was written as a solution to https://bugs.archlinux.org/task/65554. Signed-off-by: Kevin Morris <kevr.gtalk@gmail.com> Signed-off-by: Lukas Fleischer <lfleischer@archlinux.org>
This commit is contained in:
parent
966f7bc186
commit
485b9513d7
1 changed files with 2 additions and 1 deletions
|
@ -501,7 +501,8 @@ class RequestCloseNotification(Notification):
|
|||
'FROM PackageRequests ' +
|
||||
'INNER JOIN RequestTypes ' +
|
||||
'ON RequestTypes.ID = PackageRequests.ReqTypeID ' +
|
||||
'WHERE PackageRequests.ID = ?', [reqid])
|
||||
'WHERE PackageRequests.ID = ? AND ' +
|
||||
'Users.Suspended = 0', [reqid])
|
||||
self._text, self._reqtype, self._pkgbase = cur.fetchone()
|
||||
self._reqid = int(reqid)
|
||||
self._reason = reason
|
||||
|
|
Loading…
Add table
Reference in a new issue