Commit 177e01e2 by Tim Krones

Add implementation for max_attempts_reached property (was just returning

False until now).
parent 677ffef8
...@@ -887,7 +887,7 @@ class MentoringWithExplicitStepsBlock(BaseMentoringBlock, StudioContainerWithNes ...@@ -887,7 +887,7 @@ class MentoringWithExplicitStepsBlock(BaseMentoringBlock, StudioContainerWithNes
@property @property
def max_attempts_reached(self): def max_attempts_reached(self):
return False return self.max_attempts > 0 and self.num_attempts >= self.max_attempts
@property @property
def assessment_message(self): def assessment_message(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