diff --git a/home/schedulers.py b/home/schedulers.py index 4fa6451..4ddae07 100644 --- a/home/schedulers.py +++ b/home/schedulers.py @@ -4,8 +4,9 @@ def start(): scheduler = BackgroundScheduler() - scheduler.add_jobstore(DjangoJobStore(), "default") - scheduler.add_job(__send__rebate__email__, 'cron', hour=23, minute=59, second=0) - register_events(scheduler) - scheduler.start() - print, "scheduler started" + if scheduler is None: + scheduler.add_jobstore(DjangoJobStore(), "default") + scheduler.add_job(__send__rebate__email__, 'cron', hour=23, minute=59, second=0) + register_events(scheduler) + scheduler.start() + print(scheduler) \ No newline at end of file diff --git a/templates/admin/allocation.html b/templates/admin/allocation.html index d8aee37..eebb07f 100644 --- a/templates/admin/allocation.html +++ b/templates/admin/allocation.html @@ -17,15 +17,13 @@