Skip to content

Commit

Permalink
T6816 Correctie deadline tussen september en december
Browse files Browse the repository at this point in the history
  • Loading branch information
TinusVL committed Dec 12, 2024
1 parent 37dbe05 commit fbbd3e9
Showing 1 changed file with 8 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -115,9 +115,16 @@ def get_responsibility_epoch(default_value=None):

@staticmethod
def get_responsibility_epoch_date(default_value=None):
# TODO Het kampjaar opzoeken in camps_campyear en de deadline voor het kampjaar opzoeken in de tabel deadlines_deadline

month, day = GroupAdminSettings.get_responsibility_epoch(default_value)

return datetime.datetime(timezone.now().date().year, month, day).date()
year = timezone.now().date().year
if 9 <= timezone.now().date().month:
# Vanaf semptember kijken we naar het kalenderjaar erna
year += 1

return datetime.datetime(year, month, day).date()

@staticmethod
def get_administrator_groups() -> List[str]:
Expand Down

0 comments on commit fbbd3e9

Please sign in to comment.