Skip db preload on healtchcheck requests
Some checks failed
Run tests and linters / test (pull_request) Successful in 2m56s
Run tests and linters / lint (pull_request) Failing after 3s

This commit is contained in:
Jaroslav Groman 2026-05-25 13:18:17 +02:00
commit bad29a5aec

View file

@ -40,6 +40,8 @@ main = Blueprint('main', __name__)
@app.before_request
def before_request():
if request.path == '/_health':
return
g.milestones = Milestone.query.filter_by(active=True).order_by(Milestone.name).all()
g.version = __version__
g.version_date = misc.version_date()