mirror of
https://github.com/etnguyen03/tjdests.git
synced 2025-04-20 17:50:16 -04:00
fix: fix AP exam bug introduced in cc5c9f22e5
I can't copy and paste properly, apparently.
This commit is contained in:
parent
2debd182db
commit
258caf98a0
|
@ -74,8 +74,8 @@ class TestScoreForm(forms.ModelForm):
|
|||
self.add_error("exam_score", "This is not a valid SAT exam score")
|
||||
|
||||
# AP is 1-5
|
||||
if exam_type.startswith("AP_"):
|
||||
if not 1 <= exam_score <= 36:
|
||||
elif exam_type.startswith("AP_"):
|
||||
if not 1 <= exam_score <= 5:
|
||||
self.add_error("exam_score", "This is not a valid AP exam score")
|
||||
|
||||
return cleaned_data
|
||||
|
|
Loading…
Reference in New Issue
Block a user