Skip to content

Commit

Permalink
fix: fix a bug in registration
Browse files Browse the repository at this point in the history
  • Loading branch information
AmooHashem committed Dec 14, 2024
1 parent ba22c96 commit 0ddfcdb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/fsm/models/form.py
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ def validate_user_registration_permission_status(self, user):
def check_time(self):
if self.end_date and datetime.now(self.end_date.tzinfo) > self.end_date:
return self.RegisterPermissionStatus.DeadlineMissed
if self.start_date and datetime.now(self.end_date.tzinfo) < self.start_date:
if self.start_date and datetime.now(self.start_date.tzinfo) < self.start_date:
return self.RegisterPermissionStatus.NotStarted
return 'ok'

Expand Down

0 comments on commit 0ddfcdb

Please sign in to comment.