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")