bugfix: lcp score can apparently be 0/0
This commit is contained in:
committed by
Matthew Mongeau
parent
a47459512d
commit
cf2c5cba4f
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user