Commit 418f218e by Vik Paruchuri

Fix some templates, minor code reformats

parent 247ccc37
......@@ -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 = {
......
---
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: ""
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment