fix tz stuff and ttc stuff

timetoconfirm
Raz 7 months ago
parent 7264f139ee
commit ca19750df3
  1. 4
      tournaments/models/tournament.py

@ -1121,7 +1121,7 @@ class Tournament(BaseModel):
return False
# Get the current registration status
status = self.get_online_registration_status()
print(status, self.has_started())
# Define which status values should allow automatic waiting list
status_map = {
OnlineRegistrationStatus.OPEN: True,
@ -1129,7 +1129,7 @@ class Tournament(BaseModel):
OnlineRegistrationStatus.NOT_STARTED: False,
OnlineRegistrationStatus.ENDED: False,
OnlineRegistrationStatus.WAITING_LIST_POSSIBLE: False,
OnlineRegistrationStatus.WAITING_LIST_FULL: True, # Still manage in case spots open up
OnlineRegistrationStatus.WAITING_LIST_FULL: False, # Still manage in case spots open up
OnlineRegistrationStatus.IN_PROGRESS: False, # Allow for last-minute changes
OnlineRegistrationStatus.ENDED_WITH_RESULTS: False,
OnlineRegistrationStatus.CANCELED: False

Loading…
Cancel
Save