Skip to content

Commit

Permalink
Merge pull request #19 from caseylitton/fix-count-attempts-limit-to-one
Browse files Browse the repository at this point in the history
Stop count_attemps for being limited to one
  • Loading branch information
caseylitton authored Feb 9, 2017
2 parents 86906db + 3439faf commit 08137ee
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions submit_and_compare/submit_and_compare.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 08137ee

Please sign in to comment.