Commit 84ba2168 by David Ormsbee

Merge pull request #17 from MITx/weighted_defaults

fixed the default weight to not interfere with precedent
parents eff95c26 f9a04406
......@@ -100,7 +100,7 @@ def grade_sheet(student):
correct = random.randrange( max(total-2, 1) , total + 1 )
else:
correct = total
scores.append( Score(int(correct),total, float(p.get("weight", 1)), graded, p.get("name")) )
scores.append( Score(int(correct),total, float(p.get("weight", total)), graded, p.get("name")) )
section_total, graded_total = aggregate_scores(scores)
#Add the graded total to totaled_scores
......
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