nopaque/app/daemon/__init__.py
2024-09-25 10:45:53 +02:00

12 lines
244 B
Python

from flask import Flask
from app import db
from .corpus_utils import check_corpora
from .job_utils import check_jobs
def daemon(app: Flask):
with app.app_context():
check_corpora()
check_jobs()
db.session.commit()