Skip to content

Commit

Permalink
Fix frozen results for series (#401)
Browse files Browse the repository at this point in the history
  • Loading branch information
kovacspe authored Aug 22, 2024
1 parent 8edb147 commit 4830517
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion competition/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -482,7 +482,7 @@ def results(self, request: Request, pk: Optional[int] = None):
"""Vráti výsledkovku pre sériu"""
series = self.get_object()
if series.frozen_results is not None:
return json.loads(series.frozen_results)
return Response(json.loads(series.frozen_results), status=status.HTTP_200_OK)
results = self.__create_result_json(series)
return Response(results, status=status.HTTP_200_OK)

Expand Down

0 comments on commit 4830517

Please sign in to comment.