Skip to content

Commit

Permalink
Notification rework v0.1
Browse files Browse the repository at this point in the history
  • Loading branch information
jokob-sk committed Oct 5, 2023
1 parent 2aa984b commit 2476a36
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions pialert/helper.py
Original file line number Diff line number Diff line change
Expand Up @@ -625,12 +625,12 @@ def __init__(self, json, text, html, notificationType):
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)

0 comments on commit 2476a36

Please sign in to comment.