fix broken commit
All checks were successful
release-tag / release-image (push) Successful in 32s

This commit is contained in:
2025-05-26 10:58:36 +02:00
parent df2d8f33a5
commit 1a1179a9ee
4 changed files with 112 additions and 0 deletions

9
app/core/utils.py Normal file
View File

@@ -0,0 +1,9 @@
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