示例#1
0
文件: views.py 项目: t001/Praktomat
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')
示例#2
0
文件: models.py 项目: t001/Praktomat
	def check(self, run_secret = 0): 
		"""Builds and tests this solution."""
		from checker.models import check
		check(self, run_secret)
示例#3
0
	def check(self, run_secret = 0): 
		"""Builds and tests this solution."""
		from checker.models import check
		check(self, run_secret)
示例#4
0
文件: views.py 项目: t001/Praktomat
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')
示例#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]))
示例#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]))