From 9de8a2ed0ebff8d3153fa5934044308626098ecf Mon Sep 17 00:00:00 2001 From: Emmy D'Anello Date: Mon, 28 Oct 2024 19:39:31 +0100 Subject: [PATCH] Store registration dates Signed-off-by: Emmy D'Anello --- tfjm/context_processors.py | 1 + tfjm/settings.py | 11 +++++++++++ 2 files changed, 12 insertions(+) diff --git a/tfjm/context_processors.py b/tfjm/context_processors.py index 2f0a043..3ab31fa 100644 --- a/tfjm/context_processors.py +++ b/tfjm/context_processors.py @@ -18,6 +18,7 @@ def tfjm_context(request): 'ML_MANAGEMENT': settings.ML_MANAGEMENT, 'PAYMENT_MANAGEMENT': settings.PAYMENT_MANAGEMENT, 'RECOMMENDED_SOLUTIONS_COUNT': settings.RECOMMENDED_SOLUTIONS_COUNT, + 'REGISTRATION_DATES': settings.REGISTRATION_DATES, 'SINGLE_TOURNAMENT': settings.SINGLE_TOURNAMENT, 'HEALTH_SHEET_REQUIRED': settings.HEALTH_SHEET_REQUIRED, 'VACCINE_SHEET_REQUIRED': settings.VACCINE_SHEET_REQUIRED, diff --git a/tfjm/settings.py b/tfjm/settings.py index 0e1c72b..652e372 100644 --- a/tfjm/settings.py +++ b/tfjm/settings.py @@ -13,6 +13,7 @@ For the full list of settings and their values, see https://docs.djangoproject.com/en/5.0/ref/settings/ """ +from datetime import datetime import os import sys @@ -365,6 +366,11 @@ if TFJM_APP == "TFJM": LOGO_FILE = "tfjm.svg" RULES_LINK = "https://tfjm.org/reglement" + REGISTRATION_DATES = dict( + open=datetime.fromisoformat("2025-01-08T12:00:00+0100"), + close=datetime.fromisoformat("2025-03-02T22:00:00+0100"), + ) + PROBLEMS = [ "Triominos", "Rassemblements mathématiques", @@ -395,6 +401,11 @@ elif TFJM_APP == "ETEAM": LOGO_FILE = "eteam.png" RULES_LINK = "https://eteam.tfjm.org/rules/" + REGISTRATION_DATES = dict( + open=datetime.fromisoformat("2024-06-01T12:00:00+0200"), + close=datetime.fromisoformat("2024-07-04T20:00:00+0200"), + ) + PROBLEMS = [ "Exploring Flatland", "A Mazing Hive",