feature/tourunament-classification #41

Merged
s470631 merged 3 commits from feature/tourunament-classification into master 2022-06-05 10:29:07 +02:00
Showing only changes of commit a184692be5 - Show all commits

View File

@ -623,14 +623,6 @@ class TournamentClassificationView(TemplateView):
name = request.POST["name"] name = request.POST["name"]
context["tournament_names"] = self.get_queryset().values_list("tournament__name", flat=True).order_by("tournament__name").distinct() context["tournament_names"] = self.get_queryset().values_list("tournament__name", flat=True).order_by("tournament__name").distinct()
context["final_tournaments"] = TournamentClassification.objects.filter(tournament__name=name).values("tournament__name","score", "date", "user__email").order_by("-score", "date") context["final_tournaments"] = TournamentClassification.objects.filter(tournament__name=name).values("tournament__name","score", "date", "user__email").order_by("-score", "date")
# for tc in tournament_classification:
# final_tournaments.append({
# "name": tc.tournament.name,
# "user": tc.user,
# "date": tc.date
# })
# import pdb;
# pdb.set_trace()
return render(request, 'tournament_classification.html', context) return render(request, 'tournament_classification.html', context)