nopaque/app/daemon/__init__.py

12 lines
244 B
Python
Raw Normal View History

from flask import Flask
2024-09-25 08:45:53 +00:00
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()