Skip to content

Commit

Permalink
fix: invariant check typo
Browse files Browse the repository at this point in the history
  • Loading branch information
vugonz committed Nov 17, 2024
1 parent 441d8fb commit b285f7c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/models/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.")

Expand Down

0 comments on commit b285f7c

Please sign in to comment.