Ejemplo n.º 1
0
def solution_run_checker(request,solution_id):
	solution = Solution.objects.get(pk=solution_id)
	check(solution,True)
	# Since Django suxx (see https://code.djangoproject.com/ticket/8764) and cant mix args with kwargs in reverse(),
	# we suck too, and just mess around with the url
	return HttpResponseRedirect(reverse('solution_detail', args=[solution_id]) + 'full')
Ejemplo n.º 2
0
	def check(self, run_secret = 0): 
		"""Builds and tests this solution."""
		from checker.models import check
		check(self, run_secret)
Ejemplo n.º 3
0
def solution_run_checker(request,solution_id):
	solution = Solution.objects.get(pk=solution_id)
	check(solution,True)
	return HttpResponseRedirect(reverse('solution_detail_full', args=[solution_id]))