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

@ -47,7 +47,7 @@ def _notify_superusers(key):
superusers = User.select().where(User.username << config.app_config['SUPER_USERS'])
for superuser in superusers:
create_notification('service_key_submitted', superuser, metadata=notification_metadata,
lookup_path='/service_key_approval/{0}'.format(key.kid))
lookup_path='/service_key_approval/{0}/{1}'.format(key.kid, superuser.id))
def create_service_key(name, kid, service, jwk, metadata, expiration_date):