From 0c6ffd26c0baab1561a6c5d23ed40154bbae19a5 Mon Sep 17 00:00:00 2001 From: MuslemRahimi Date: Mon, 3 Feb 2025 20:39:32 +0100 Subject: [PATCH] typo --- app/primary_cron_job.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/primary_cron_job.py b/app/primary_cron_job.py index 84ec370..43b52cf 100755 --- a/app/primary_cron_job.py +++ b/app/primary_cron_job.py @@ -347,13 +347,13 @@ def run_ai_score(): run_command(["python3", "restart_json.py"]) run_command(["python3", "cron_statistics.py"]) -def run_push_notification(): +def run_push_notifications(): now = datetime.now(ny_tz) week = now.weekday() hour = now.hour if week <= 4 and 7 <= hour < 22: - run_command(["python3", "cron_push_notification.py"]) + run_command(["python3", "cron_push_notifications.py"]) # Create functions to run each schedule in a separate thread @@ -422,7 +422,7 @@ schedule.every(1).hours.do(run_threaded, run_company_news).tag('company_news_job schedule.every(3).hours.do(run_threaded, run_press_releases).tag('press_release_job') -schedule.every(15).minutes.do(run_threaded, run_push_notification).tag('push_notification_job') +schedule.every(15).minutes.do(run_threaded, run_push_notifications).tag('push_notifications_job') schedule.every(30).minutes.do(run_threaded, run_options_stats).tag('options_stats_job') schedule.every(5).minutes.do(run_threaded, run_market_flow).tag('market_flow_job')