def get_result_table(self): return get_result_table( Submission.objects.filter( problem_id=self.problem.id, contest__participation__contest_id=self.contest.id))
def get_result_table(self): return get_result_table(self.get_queryset().order_by())
def get_result_table(self): return get_result_table( super(RankedSubmissions, self).get_queryset().order_by())
def get_result_table(self): return get_result_table(Submission.objects.filter( problem_id=self.problem.id, contest__participation__contest_id=self.contest.id))
def get_result_table(self): return get_result_table(super(RankedSubmissions, self).get_queryset())
def statistics_table_query(request): page = cache.get('sub_stats_table') if page is None: page = loader.render_to_string('problem/statistics_table.jade', {'results': get_result_table()}) cache.set('sub_stats_table', page, 86400) return HttpResponse(page)