From f527c6941bc7e515790cc6af71e7df34a9a5d93d Mon Sep 17 00:00:00 2001 From: kovacspe Date: Fri, 22 Nov 2024 00:36:36 +0100 Subject: [PATCH] Spravne renderovane poradia ak ma user 0 bodov --- competition/views.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/competition/views.py b/competition/views.py index e5e6fbb..4bd1f90 100644 --- a/competition/views.py +++ b/competition/views.py @@ -79,7 +79,8 @@ def generate_result_row( solution_points.append(sol.score or 0 if sol is not None else 0) series_solutions.append( { - 'points': str(sol.score or '?') if sol is not None else '-', + 'points': (str(sol.score if sol.score is not None else '?') + if sol is not None else '-'), 'solution_pk': sol.pk if sol is not None else None, 'problem_pk': problem.pk, 'votes': 0 # TODO: Implement votes sol.vote