X-Git-Url: https://git.mdrn.pl/edumed.git/blobdiff_plain/e0224522b19349880b01cf4a41f3a86dd60187b2..50e9ced81e8078007602018f029834ce1f257cf0:/wtem/management/commands/wtem_assign_submissions.py?ds=inline diff --git a/wtem/management/commands/wtem_assign_submissions.py b/wtem/management/commands/wtem_assign_submissions.py index b0f2a4f..7ff1af2 100644 --- a/wtem/management/commands/wtem_assign_submissions.py +++ b/wtem/management/commands/wtem_assign_submissions.py @@ -32,8 +32,7 @@ class Command(BaseCommand): 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']: