set minimum
[edumed.git] / wtem / management / commands / wtem_send_results.py
index ef593e7..d75707a 100644 (file)
@@ -14,7 +14,7 @@ from wtem.models import Submission
 def get_submissions():
     return sorted(Submission.objects.exclude(answers=None).all(), key=lambda s: -s.final_result)
 
-minimum = 52
+minimum = 34
 
 
 class Command(BaseCommand):
@@ -37,9 +37,13 @@ class Command(BaseCommand):
             action='store',
             dest='only_to',
             default=None,
-            help='Send emails only to listed addresses'),
+            help='Send email only to one address'),
     )
 
+    def __init__(self):
+        super(Command, self).__init__()
+        self.sent = self.failed = None
+
     def handle(self, *args, **options):
         translation.activate('pl')
         for target in ['to_teachers', 'to_students']: