Fix some templates, minor code reformats

This commit is contained in:
Vik Paruchuri
2013-04-09 15:33:11 -04:00
parent 247ccc37a6
commit 418f218eec
2 changed files with 3 additions and 4 deletions

View File

@@ -738,7 +738,7 @@ class CombinedOpenEndedV1Module():
score = None
if self.check_if_done_and_scored():
scores = []
for i in xrange(0,self.current_task_number):
for i in xrange(0, self.current_task_number):
last_response = self.get_last_response(i)
try:
max_score = last_response['max_score'] * float(self.weight)
@@ -746,7 +746,7 @@ class CombinedOpenEndedV1Module():
scores.append(score)
except:
pass
if len(scores)>0:
if len(scores) > 0:
score = max(scores)
score_dict = {

View File

@@ -1,10 +1,9 @@
---
metadata:
display_name: Open Ended Response
max_attempts: 1
attempts: 1
is_graded: False
version: 1
display_name: Open Ended Response
skip_spelling_checks: False
accept_file_upload: False
weight: ""