From 14490bd7d2c0587a9b6d626068e691ff617efaa2 Mon Sep 17 00:00:00 2001 From: Karl Date: Fri, 18 Jul 2025 18:03:43 +0100 Subject: [PATCH] run at 10am --- ktvmanager/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ktvmanager/main.py b/ktvmanager/main.py index ca4d7d9..836fcfa 100644 --- a/ktvmanager/main.py +++ b/ktvmanager/main.py @@ -22,7 +22,7 @@ def create_app(): # Schedule the daily account check scheduler = BackgroundScheduler() # Pass the app instance to the job - scheduler.add_job(func=lambda: send_expiry_notifications(app), trigger="interval", days=1) + scheduler.add_job(func=lambda: send_expiry_notifications(app), trigger="cron", hour=10, minute=0) scheduler.start() # Register blueprints