diff --git a/submit_and_compare/submit_and_compare.py b/submit_and_compare/submit_and_compare.py index 9bb21a3..ddf348a 100644 --- a/submit_and_compare/submit_and_compare.py +++ b/submit_and_compare/submit_and_compare.py @@ -294,11 +294,7 @@ def student_submit(self, submissions, suffix=''): self.student_answer = submissions['answer'] if submissions['action'] == 'submit': - # the user can make an unlimited number of attempts - if self.max_attempts == 0: - self.count_attempts = 1 - else: - self.count_attempts += 1 + self.count_attempts += 1 if self.student_answer: self.score = 1.0