Esempio 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')
Esempio n. 2
0
	def check(self, run_secret = 0): 
		"""Builds and tests this solution."""
		from checker.models import check
		check(self, run_secret)
Esempio n. 3
0
	def check(self, run_secret = 0): 
		"""Builds and tests this solution."""
		from checker.models import check
		check(self, run_secret)
Esempio n. 4
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')
Esempio n. 5
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]))
Esempio n. 6
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]))