From f46f99c1a219bcdc9dc07bccc115cc35bc4943b8 Mon Sep 17 00:00:00 2001 From: Scott Wallace Date: Fri, 30 Oct 2020 17:20:24 +0000 Subject: [PATCH] Fix extra "resolved" message --- src/alertify/messaging.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/alertify/messaging.py b/src/alertify/messaging.py index fb03764..cb638bb 100644 --- a/src/alertify/messaging.py +++ b/src/alertify/messaging.py @@ -31,6 +31,10 @@ class MessageHandler: for alert_id in self.gotify.find_byfingerprint(alert): if not self.gotify.delete(alert_id): logging.error('There was a problem removing message ID %d', alert_id) + return { + 'status': 200, + 'reason': 'Message deletion complete' + } prefix = 'resolved' else: