Files
choriosity-anmeldung/app/core/utils.py
matsewe 1a1179a9ee
All checks were successful
release-tag / release-image (push) Successful in 32s
fix broken commit
2025-05-26 10:58:36 +02:00

10 lines
281 B
Python

from app.core.config import settings
from datetime import datetime
def is_registration_open():
now = datetime.now(tz=settings.TZ)
not_before = now >= settings.NOT_BEFORE
not_after = now <= settings.NOT_AFTER
return not_before and not_after, not_before, not_after