From b285f7c608c1a6c21f48449c69208824ff01ae01 Mon Sep 17 00:00:00 2001 From: gazev Date: Sun, 17 Nov 2024 03:45:19 +0000 Subject: [PATCH] fix: invariant check typo --- app/models/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/models.py b/app/models/models.py index 474f40c..0ea76e3 100644 --- a/app/models/models.py +++ b/app/models/models.py @@ -101,7 +101,7 @@ def check_invariants(self): # ist_id if not isinstance(self.ist_id, str) or not self.ist_id or \ - len(self.ist_id < 4) or len(self.ist_id) > 20 or \ + len(self.ist_id) < 4 or len(self.ist_id) > 20 or \ not self.ist_id.startswith("ist1"): raise ValueError("Field 'ist_id' must be a valid IST student number.")