def get_submissions():
return sorted(Submission.objects.exclude(answers=None).all(), key=lambda s: -s.final_result)
-minimum = 52
+minimum = 34
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']: