From c2865bfea83ed3163bbda6cfb798ec3416cd0258 Mon Sep 17 00:00:00 2001 From: altaf-creator Date: Sun, 30 Nov 2025 00:55:55 +0700 Subject: included segments expermimgntes --- backend/__pycache__/main.cpython-314.pyc | Bin 17658 -> 17722 bytes backend/main.py | 4 ++-- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'backend') diff --git a/backend/__pycache__/main.cpython-314.pyc b/backend/__pycache__/main.cpython-314.pyc index 147e309..c9330c8 100644 Binary files a/backend/__pycache__/main.cpython-314.pyc and b/backend/__pycache__/main.cpython-314.pyc differ diff --git a/backend/main.py b/backend/main.py index 0cff912..282abce 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(ONESIGNAL_APP_ID) + notification = Notification(app_id=ONESIGNAL_APP_ID, included_segments=['All']) 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(ONESIGNAL_APP_ID) + notification = Notification(app_id=ONESIGNAL_APP_ID, included_segments=['All']) try: api_response = api_instance.create_notification(notification) -- cgit v1.2.3