Split routes into multiple files (#2)

* split into files

* attempted path fix

* perms fix

* added missed functions

* fixed circular dependancy

* I hate splitting

* env fix

* path fix
This commit is contained in:
2025-02-18 01:27:40 +00:00
committed by GitHub
parent 4c7853fb3f
commit c1f26094de
24 changed files with 584 additions and 470 deletions
+16
View File
@@ -0,0 +1,16 @@
# app/scheduler.py
from flask_apscheduler import APScheduler
from .helpers import delete_inactive_sites
scheduler = APScheduler()
def init_scheduler(app):
scheduler.init_app(app)
scheduler.start()
scheduler.add_job(
id="delete_job",
func=delete_inactive_sites,
trigger="interval",
days=1,
)