dismiss_notification

master
Samuel Kim 2016-05-26 22:40:56 -04:00
parent 94ef60fc93
commit b386bf9d00
1 changed files with 3 additions and 3 deletions

View File

@ -24,9 +24,9 @@ def dismiss_notification(nid):
n = Notification.get(Notification.id == nid)
if g.team != n.team:
code, message = NOTIFICATION_NOT_YOURS
Notification.delete().where(Notification.id == nid).execute()
code, message = SUCCESS
else:
Notification.delete().where(Notification.id == nid).execute()
code, message = SUCCESS
return jsonify(dict(code=code, message=message))
@api.route("/_ctftime/")