From 2476a36661ac2bc5aa4d0b5d7ebee62fbab0f270 Mon Sep 17 00:00:00 2001 From: Jokob-sk Date: Fri, 6 Oct 2023 08:16:45 +1100 Subject: [PATCH] Notification rework v0.1 --- pialert/helper.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/pialert/helper.py b/pialert/helper.py index 35414f8a..676bc52b 100755 --- a/pialert/helper.py +++ b/pialert/helper.py @@ -625,12 +625,12 @@ class noti_struc: self.text = text self.html = html - jsonFile = apiPath + f'/notifications_{notificationType}.json' + # jsonFile = apiPath + f'/notifications_{notificationType}.json' - mylog('debug', [f"[Notifications] Writing {jsonFile}"]) + # mylog('debug', [f"[Notifications] Writing {jsonFile}"]) - if notificationType != '': + # if notificationType != '': - # Update .json file - with open(jsonFile, 'w') as jsonFile: - json.dump(self, jsonFile, cls=NotiStrucEncoder, indent=4) + # # Update .json file + # with open(jsonFile, 'w') as jsonFile: + # json.dump(self, jsonFile, cls=NotiStrucEncoder, indent=4)