mirror of
https://gitlab.archlinux.org/archlinux/aurweb.git
synced 2025-02-03 10:43:03 +01:00
Rename the CommentNotify table to PackageNotifications
As a preparatory step to adding support for package notifications on events other than comments, rename the database table accordingly. Signed-off-by: Lukas Fleischer <lfleischer@archlinux.org>
This commit is contained in:
parent
daee000604
commit
3412de21d3
8 changed files with 27 additions and 21 deletions
|
@ -88,10 +88,10 @@ def get_maintainer_email(cur, pkgbase_id):
|
|||
|
||||
def get_recipients(cur, pkgbase_id, uid):
|
||||
cur.execute('SELECT DISTINCT Users.Email FROM Users ' +
|
||||
'INNER JOIN CommentNotify ' +
|
||||
'ON CommentNotify.UserID = Users.ID WHERE ' +
|
||||
'CommentNotify.UserID != %s AND ' +
|
||||
'CommentNotify.PackageBaseID = %s', [uid, pkgbase_id])
|
||||
'INNER JOIN PackageNotifications ' +
|
||||
'ON PackageNotifications.UserID = Users.ID WHERE ' +
|
||||
'PackageNotifications.UserID != %s AND ' +
|
||||
'PackageNotifications.PackageBaseID = %s', [uid, pkgbase_id])
|
||||
return [row[0] for row in cur.fetchall()]
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue