Notification rework v0.2

This commit is contained in:
Jokob-sk
2023-10-06 22:53:15 +11:00
parent 2476a36661
commit eb7b7b57ab
6 changed files with 188 additions and 150 deletions

View File

@@ -620,17 +620,8 @@ class json_struc:
#-------------------------------------------------------------------------------
class noti_struc:
def __init__(self, json, text, html, notificationType):
def __init__(self, json, text, html):
self.json = json
self.text = text
self.html = html
# jsonFile = apiPath + f'/notifications_{notificationType}.json'
# mylog('debug', [f"[Notifications] Writing {jsonFile}"])
# if notificationType != '':
# # Update .json file
# with open(jsonFile, 'w') as jsonFile:
# json.dump(self, jsonFile, cls=NotiStrucEncoder, indent=4)