Notification rework v0.1

This commit is contained in:
Jokob-sk
2023-10-06 08:16:45 +11:00
parent 2aa984b147
commit 2476a36661

View File

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