Notification rework v0.1
This commit is contained in:
@@ -625,12 +625,12 @@ class noti_struc:
|
|||||||
self.text = text
|
self.text = text
|
||||||
self.html = html
|
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
|
# # Update .json file
|
||||||
with open(jsonFile, 'w') as jsonFile:
|
# with open(jsonFile, 'w') as jsonFile:
|
||||||
json.dump(self, jsonFile, cls=NotiStrucEncoder, indent=4)
|
# json.dump(self, jsonFile, cls=NotiStrucEncoder, indent=4)
|
||||||
|
|||||||
Reference in New Issue
Block a user