diff options
Diffstat (limited to 'yaksh/models.py')
-rw-r--r-- | yaksh/models.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/yaksh/models.py b/yaksh/models.py index f9dda45..1e96ae1 100644 --- a/yaksh/models.py +++ b/yaksh/models.py @@ -720,8 +720,10 @@ class LearningModule(models.Model): learning_units_with_quiz = self.learning_unit.filter(type='quiz') ordered_units = learning_units_with_quiz.order_by("order") - statuses = [unit.quiz.get_answerpaper_passing_status(user, course) - for unit in ordered_units] + statuses = [ + unit.quiz.get_answerpaper_passing_status(user, course) + for unit in ordered_units + ] if not statuses: status = False |