From 3e895ee3af982faa123011ff5bf5b23a098c46fc Mon Sep 17 00:00:00 2001 From: Guillaume Pellerin Date: Fri, 19 May 2017 17:33:45 +0200 Subject: [PATCH] Fix perdio for script corrector --- teleforma/exam/models.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/teleforma/exam/models.py b/teleforma/exam/models.py index e93176bd..62d75d7c 100644 --- a/teleforma/exam/models.py +++ b/teleforma/exam/models.py @@ -278,11 +278,13 @@ class Script(BaseResource): quota_list = [] quotas = self.course.quotas.filter(date_start__lte=self.date_submitted, date_end__gte=self.date_submitted, - script_type=self.type) + script_type=self.type, + period=self.period) if not quotas: quotas = self.course.quotas.filter(date_start__lte=self.date_submitted, date_end__gte=self.date_submitted, - script_type=None) + script_type=None, + period=self.period) if quotas: for quota in quotas: if quota.value: -- 2.39.5