From bce9a7ac393c58aef005f29c437a32022f9d5c3e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sondre=20Gr=C3=B8n=C3=A5s?= <44143748+sondregronas@users.noreply.github.com> Date: Sun, 14 Jul 2024 18:43:11 +0200 Subject: [PATCH] Update routine_tasks.py --- BookingSystem/routine_tasks.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/BookingSystem/routine_tasks.py b/BookingSystem/routine_tasks.py index 3252306..b98fb0f 100644 --- a/BookingSystem/routine_tasks.py +++ b/BookingSystem/routine_tasks.py @@ -56,7 +56,7 @@ def run_mon_to_fri_at_time(job_func, at_time, name): _prune_inactive = lambda: _task(prune_inactive) # TODO: Add a setting to change the time of the day these run - run_mon_to_fri_at_time(_send_report, "10:00").tag("Dagsrapport") + run_mon_to_fri_at_time(_send_report, "10:00", name="Dagsrapport") logger.info("Scheduled send_report to run Mon-Fri at 10:00") schedule.every().sunday.at("01:00").do(_prune_inactive).tag("Cleanup") logger.info("Scheduled prune_inactive to run on Sundays at 01:00")