From 0ddfcdb1f85e7227d6586b2e5b8db40d0d91b3c2 Mon Sep 17 00:00:00 2001 From: Seyed Alireza Hashemi Date: Sun, 15 Dec 2024 01:20:42 +0330 Subject: [PATCH] fix: fix a bug in registration --- apps/fsm/models/form.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/fsm/models/form.py b/apps/fsm/models/form.py index 6d91c3ad..a401fb22 100644 --- a/apps/fsm/models/form.py +++ b/apps/fsm/models/form.py @@ -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'