From 258caf98a0eda7fce80c25f198e1e7ae1490abd5 Mon Sep 17 00:00:00 2001 From: Ethan Nguyen Date: Mon, 19 Apr 2021 22:54:46 -0400 Subject: [PATCH] fix: fix AP exam bug introduced in cc5c9f22e59ae56d7cae4609dd46d4df4470a555 I can't copy and paste properly, apparently. --- tjdests/apps/profile/forms.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tjdests/apps/profile/forms.py b/tjdests/apps/profile/forms.py index d1fe52f..d279379 100644 --- a/tjdests/apps/profile/forms.py +++ b/tjdests/apps/profile/forms.py @@ -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