From: Guillaume Pellerin Date: Thu, 2 Jul 2020 11:22:18 +0000 (+0200) Subject: exam: svoid script type filtering to set correctors X-Git-Tag: 1.4.3~67 X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=c91a036784bad34e32439445668249b39663bc0e;p=teleforma.git exam: svoid script type filtering to set correctors --- 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):