This commit is contained in:
Felix Baumann
2026-06-28 10:20:36 +00:00
parent 64b32d0b44
commit 148efd919d
86 changed files with 2475 additions and 760 deletions
+20 -2
View File
@@ -1,5 +1,23 @@
from django.apps import AppConfig
class InvoicesConfig(AppConfig):
name = 'invoices'
name = "invoices"
def ready(self):
from django_apscheduler.jobstores import DjangoJobStore
from apscheduler.schedulers.background import BackgroundScheduler
from . import scheduler
sched = BackgroundScheduler()
sched.add_jobstore(DjangoJobStore(), "default")
sched.add_job(
scheduler.mark_overdue,
trigger="cron",
hour=1,
minute=0,
id="mark_overdue",
replace_existing=True,
)
sched.start()