Commit dbdba50b by dragonfi

Do not number question when there is only one

parent b09995b7
...@@ -114,8 +114,14 @@ class MentoringBlock(XBlockWithLightChildren): ...@@ -114,8 +114,14 @@ class MentoringBlock(XBlockWithLightChildren):
return (score, int(round(score*100)), correct, incorrect) return (score, int(round(score*100)), correct, incorrect)
def _index_steps(self): def _index_steps(self):
steps = self.steps
if len(steps) == 1:
steps[0].index = ""
return
index = 1 index = 1
for child in self.steps: for child in steps:
child.index = index child.index = index
index += 1 index += 1
......
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