Remove filtering by not having more than two assigned examiners
authorAleksander Łukasz <aleksander.lukasz@nowoczesnapolska.org.pl>
Thu, 21 Nov 2013 22:44:13 +0000 (23:44 +0100)
committerAleksander Łukasz <aleksander.lukasz@nowoczesnapolska.org.pl>
Wed, 15 Jan 2014 10:28:05 +0000 (11:28 +0100)
wtem/management/commands/wtem_assign_submissions.py

index b0f2a4f..7ff1af2 100644 (file)
@@ -32,8 +32,7 @@ class Command(BaseCommand):
         users = User.objects.filter(username__in = examiner_names)
         submissions_query = Submission.objects.annotate(examiners_count = Count('examiners'))
 
         users = User.objects.filter(username__in = examiner_names)
         submissions_query = Submission.objects.annotate(examiners_count = Count('examiners'))
 
-        submissions = submissions_query \
-            .filter(examiners_count__lt=2).exclude(answers = None)
+        submissions = submissions_query.exclude(answers = None)
         
         with_attachment_ids = Attachment.objects.values_list('submission_id', flat=True).all()
         if options['attachments_only']:
         
         with_attachment_ids = Attachment.objects.values_list('submission_id', flat=True).all()
         if options['attachments_only']: