Esempio n. 1
0
	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()
Esempio n. 2
0
 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."
     )
Esempio n. 3
0
 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."
     )
Esempio n. 4
0
    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()
Esempio n. 5
0
	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.")
Esempio n. 6
0
	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.")