Skip to content

Commit

Permalink
Spravne renderovane poradia ak ma user 0 bodov
Browse files Browse the repository at this point in the history
  • Loading branch information
kovacspe committed Nov 21, 2024
1 parent b70b3c1 commit f527c69
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion competition/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit f527c69

Please sign in to comment.