service keys: delete notifications by prefix

This commit is contained in:
Jimmy Zelinskie 2016-04-11 18:35:46 -04:00 committed by Jimmy Zelinskie
parent fca258d8bf
commit 4020ab9f55
2 changed files with 2 additions and 2 deletions

View file

@ -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())