change the scheduler interval stuff

This commit is contained in:
2026-03-20 16:08:32 +01:00
parent 1fa8b21882
commit e4bd1bbc40

View File

@@ -40,11 +40,12 @@ def main():
# Every hour at minute 0
scheduler = BackgroundScheduler()
scheduler = BackgroundScheduler(timezone="Europe/Amsterdam")
scheduler.add_job(
lambda: update_shifts(pmt, db),
trigger='cron',
minute=0
trigger="interval",
hours=1,
next_run_time=datetime.now()
)
scheduler.start()