Commit 8a1e275c by Victor Shnayder Committed by Matthew Mongeau

bugfix: lcp score can apparently be 0/0

parent 3961a5d8
......@@ -101,7 +101,9 @@ class Module(XModule):
d = self.get_score()
score = d['score']
total = d['total']
return Progress(score, total)
if total > 0:
return Progress(score, total)
return None
def get_html(self):
......
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