summaryrefslogtreecommitdiff
path: root/backend/main.py
diff options
context:
space:
mode:
authoraltaf-creator <dev@altafcreator.com>2025-12-02 22:33:28 +0700
committeraltaf-creator <dev@altafcreator.com>2025-12-02 22:33:28 +0700
commit3979b8bcb35bc981355a83134ce7828dbfc7c0e3 (patch)
tree9cd3352a27c4de028a97426c1c1d3ec8acb6ad31 /backend/main.py
parent2beda862171233f52a0061c5139db2de64d7b85e (diff)
priority
Diffstat (limited to 'backend/main.py')
-rw-r--r--backend/main.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/backend/main.py b/backend/main.py
index ca44317..22d2936 100644
--- a/backend/main.py
+++ b/backend/main.py
@@ -191,7 +191,7 @@ def reminder_timer_finished(timer_id):
scheduler.add_job(final_timer_finished, 'date', run_date=out[0][RowIndices.END_TIME], id=str(timer_id), args=[timer_id])
- notification = Notification(app_id=ONESIGNAL_APP_ID, included_segments=['All'], contents={'en': 'get ready to get your bloody laundry'}, headings={'en': 'laundry almost finished'})
+ notification = Notification(app_id=ONESIGNAL_APP_ID, included_segments=['All'], contents={'en': 'get ready to get your bloody laundry'}, headings={'en': 'laundry almost finished'}, priority=10)
try:
api_response = api_instance.create_notification(notification)
@@ -204,7 +204,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'], contents={'en': 'get your bloody laundry'}, headings={'en': 'laundry finished'})
+ notification = Notification(app_id=ONESIGNAL_APP_ID, included_segments=['All'], contents={'en': 'get your bloody laundry'}, headings={'en': 'laundry finished'}, priority=10)
try:
api_response = api_instance.create_notification(notification)