docs 📚

This commit is contained in:
Jokob-sk
2024-01-04 13:26:28 +11:00
parent 68de633143
commit 6809688623
5 changed files with 35 additions and 17 deletions

View File

@@ -37,8 +37,16 @@ class Notification_obj:
self.save()
# Create a new DB entry if new notiifcations available, otherwise skip
def create(self, JSON, Extra=""):
# Method to override processing of notifications
def on_before_create(self, JSON, Extra):
return JSON, Extra
# Create a new DB entry if new notifications available, otherwise skip
def create(self, JSON, Extra=""):
JSON, Extra = self.on_before_create(self, JSON, Extra)
# Write output data for debug
write_file (logPath + '/report_output.json', json.dumps(JSON))