summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoraltaf-creator <dev@altafcreator.com>2025-11-30 00:57:41 +0700
committeraltaf-creator <dev@altafcreator.com>2025-11-30 00:57:41 +0700
commitbb9f5d1ddb0452bba3438f8acd199e4056346e20 (patch)
treea97f86c6e16f85c69bcca47ea2c4b6a7308e8fc2
parentc2865bfea83ed3163bbda6cfb798ec3416cd0258 (diff)
tell me which fucking fields are required pls
-rw-r--r--backend/__pycache__/main.cpython-314.pycbin17722 -> 17955 bytes
-rw-r--r--backend/main.py4
2 files changed, 2 insertions, 2 deletions
diff --git a/backend/__pycache__/main.cpython-314.pyc b/backend/__pycache__/main.cpython-314.pyc
index c9330c8..e0857df 100644
--- a/backend/__pycache__/main.cpython-314.pyc
+++ b/backend/__pycache__/main.cpython-314.pyc
Binary files differ
diff --git a/backend/main.py b/backend/main.py
index 282abce..af23726 100644
--- a/backend/main.py
+++ b/backend/main.py
@@ -128,7 +128,7 @@ def reminder_timer_finished(timer_id):
end_date = datetime.datetime.now() + datetime.timedelta(seconds=5)
scheduler.add_job(final_timer_finished, 'date', run_date=end_date, id=str(timer_id), args=[timer_id])
- notification = Notification(app_id=ONESIGNAL_APP_ID, included_segments=['All'])
+ notification = Notification(app_id=ONESIGNAL_APP_ID, included_segments=['All'], contents={'en':'get ready to get your bloody laundry'}, headings={'en':'laundry almost finished'})
try:
api_response = api_instance.create_notification(notification)
@@ -141,7 +141,7 @@ def final_timer_finished(timer_id):
cursor.execute(f"SELECT * FROM timers WHERE timer_id = '{timer_id}'")
out = cursor.fetchall()
- notification = Notification(app_id=ONESIGNAL_APP_ID, included_segments=['All'])
+ notification = Notification(app_id=ONESIGNAL_APP_ID, included_segments=['All'], contents={'en':'get your bloody laundry'}, headings={'en':'laundry finished'})
try:
api_response = api_instance.create_notification(notification)