From 4db7e31ac5f25da3de463d5635d562d38ba98704 Mon Sep 17 00:00:00 2001 From: Ross Date: Mon, 8 Feb 2021 12:00:59 +0000 Subject: [PATCH] . --- longs/models.py | 2 +- rapids/models.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/longs/models.py b/longs/models.py index df45a73d..fc687f32 100644 --- a/longs/models.py +++ b/longs/models.py @@ -346,7 +346,7 @@ class Exam(ExamBase): } - if exam.time_limit: + if self.time_limit: exam_json["exam_time"] = self.time_limit return exam_json diff --git a/rapids/models.py b/rapids/models.py index a0ce3e0d..5e5ff1da 100644 --- a/rapids/models.py +++ b/rapids/models.py @@ -396,7 +396,7 @@ class Exam(ExamBase): "questions": exam_questions, } - if exam.time_limit: + if self.time_limit: exam_json["exam_time"] = self.time_limit return