service keys: delete notifications by prefix
This commit is contained in:
parent
fca258d8bf
commit
4020ab9f55
2 changed files with 2 additions and 2 deletions
|
@ -79,7 +79,7 @@ def list_notifications(user, kind_name=None, id_filter=None, include_dismissed=F
|
|||
def delete_all_notifications_by_path_prefix(prefix):
|
||||
(Notification
|
||||
.delete()
|
||||
.where(Notification.lookup_path % prefix)
|
||||
.where(Notification.lookup_path % prefix + '%')
|
||||
.execute())
|
||||
|
||||
|
||||
|
|
Reference in a new issue