]> git.parisson.com Git - teleforma.git/commitdiff
exam: svoid script type filtering to set correctors
authorGuillaume Pellerin <guillaume.pellerin@ircam.fr>
Thu, 2 Jul 2020 11:22:18 +0000 (13:22 +0200)
committerGuillaume Pellerin <guillaume.pellerin@ircam.fr>
Thu, 2 Jul 2020 11:22:18 +0000 (13:22 +0200)
teleforma/exam/models.py

index 3c78b09febc014703bbdd7afddc36ace3db71156..f2c38e99b6819a47b01d9568fdbc55e42dd9b665 100755 (executable)
@@ -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):