def check_all_final_solutions(self): from checker.models import check_multiple check_multiple(self.solution_set.filter(final=True), True) if self.expired(): self.all_checker_finished = True self.save()
def run_checkers(self, request, queryset): """ Run Checkers (only those also run at submission) for selected solutions""" check_multiple(queryset, False) self.message_user( request, "Checkers (only those also run at submission) for selected solutions were successfully run." )
def run_checkers_all(self, request, queryset): """ Run Checkers (including those not run at submission) for selected solution """ check_multiple(queryset, True) self.message_user( request, "Checkers (including those not run at submission) for selected solutions were successfully run." )
def check_all_final_solutions(self): from checker.models import check_multiple final_solutions = self.solution_set.filter(final=True) count = check_multiple(final_solutions, True) if self.expired(): self.all_checker_finished = True self.save() return final_solutions.count()
def run_checkers(self, request, queryset): """ Run Checkers (only those also run at submission) for selected solutions""" check_multiple(queryset,False) self.message_user(request, "Checkers (only those also run at submission) for selected solutions were successfully run.")
def run_checkers_all(self, request, queryset): """ Run Checkers (including those not run at submission) for selected solution """ check_multiple(queryset,True) self.message_user(request, "Checkers (including those not run at submission) for selected solutions were successfully run.")