|
|
|
|
@ -1121,7 +1121,6 @@ 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, |
|
|
|
|
@ -1528,7 +1527,7 @@ class Tournament(BaseModel): |
|
|
|
|
datetime: The confirmation deadline datetime |
|
|
|
|
""" |
|
|
|
|
# Skip if feature not enabled |
|
|
|
|
if self.enable_time_to_confirm is False: |
|
|
|
|
if self.automatic_waiting_list() is False: |
|
|
|
|
return None |
|
|
|
|
|
|
|
|
|
config = settings.TOURNAMENT_SETTINGS['TIME_TO_CONFIRM'] |
|
|
|
|
@ -1635,6 +1634,11 @@ class Tournament(BaseModel): |
|
|
|
|
) |
|
|
|
|
print(f"Before hours: {before_hours}, After hours: {after_hours}") |
|
|
|
|
|
|
|
|
|
tournament_start_date_minus_five = tournament_start_date - timedelta(minutes=5) |
|
|
|
|
if raw_deadline >= tournament_start_date_minus_five: |
|
|
|
|
print(f"Raw Deadline is after tournament_start_date_minus_five: {raw_deadline}, {tournament_start_date_minus_five}") |
|
|
|
|
raw_deadline = tournament_start_date_minus_five |
|
|
|
|
|
|
|
|
|
print(f"Live testing: {live_testing}") |
|
|
|
|
print(f"Current time: {current_time}") |
|
|
|
|
print(f"Minutes to confirm: {minutes_to_confirm}") |
|
|
|
|
|