|
|
|
|
@ -1129,6 +1129,8 @@ class Tournament(BaseModel): |
|
|
|
|
return OnlineRegistrationStatus.CANCELED |
|
|
|
|
if self.end_date is not None: |
|
|
|
|
return OnlineRegistrationStatus.ENDED_WITH_RESULTS |
|
|
|
|
if self.enable_online_registration is False: |
|
|
|
|
return OnlineRegistrationStatus.NOT_ENABLED |
|
|
|
|
if self.supposedly_in_progress(): |
|
|
|
|
return OnlineRegistrationStatus.ENDED |
|
|
|
|
if self.closed_registration_date is not None: |
|
|
|
|
|