fix: fix AP exam bug introduced in cc5c9f22e5

I can't copy and paste properly, apparently.
This commit is contained in:
Ethan Nguyen 2021-04-19 22:54:46 -04:00
parent 2debd182db
commit 258caf98a0
No known key found for this signature in database
GPG Key ID: B4CA5339AF911920

View File

@ -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