diff options
author | rubenwardy <rw@rubenwardy.com> | 2020-07-08 23:20:29 +0100 |
---|---|---|
committer | rubenwardy <rw@rubenwardy.com> | 2020-07-08 23:20:29 +0100 |
commit | 0e2ea27f54e58287e04e046c65d04623295935dc (patch) | |
tree | b71f67c9f5d9f716c37d5b66435c7ab50bf3080a /app/utils.py | |
parent | b2809ed12eb3d8d2aca73c1a9ea1505085c307e6 (diff) | |
download | cheatdb-0e2ea27f54e58287e04e046c65d04623295935dc.tar.xz |
Add notifications for editing maintainers
Diffstat (limited to 'app/utils.py')
-rw-r--r-- | app/utils.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/utils.py b/app/utils.py index c302622..d6e6eaa 100644 --- a/app/utils.py +++ b/app/utils.py @@ -190,7 +190,7 @@ def is_package_page(f): def triggerNotif(owner, causer, title, url): if owner.rank.atLeast(UserRank.NEW_MEMBER) and owner != causer: - Notification.query.filter_by(user=owner, url=url).delete() + Notification.query.filter_by(user=owner, causer=causer, title=title, url=url).delete() notif = Notification(owner, causer, title, url) db.session.add(notif) |