From c91a036784bad34e32439445668249b39663bc0e Mon Sep 17 00:00:00 2001 From: Guillaume Pellerin Date: Thu, 2 Jul 2020 13:22:18 +0200 Subject: [PATCH] exam: svoid script type filtering to set correctors --- teleforma/exam/models.py | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/teleforma/exam/models.py b/teleforma/exam/models.py index 3c78b09f..f2c38e99 100755 --- a/teleforma/exam/models.py +++ b/teleforma/exam/models.py @@ -317,9 +317,12 @@ class Script(BaseResource): session=self.session, period=self.period) - quotas = all_quotas.filter(script_type=self.type) - if not quotas: - quotas = all_quotas.filter(script_type=None) + ## Commented to not filter by type anymore + # quotas = all_quotas.filter(script_type=self.type) + # if not quotas: + # quotas = all_quotas.filter(script_type=None) + + quotas = all_quotas if quotas: for quota in quotas: @@ -416,7 +419,7 @@ class Script(BaseResource): loop = 0 self.box_uuid = crocodoc.document.upload(url=self.url) - + while True: statuses = crocodoc.document.status([self.box_uuid,]) if (len(statuses) != 0): -- 2.39.5