From 48305172f31ef9ad51f40503fd8ba506ca9095c0 Mon Sep 17 00:00:00 2001 From: kovacspe Date: Thu, 22 Aug 2024 19:31:15 +0200 Subject: [PATCH] Fix frozen results for series (#401) --- competition/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/competition/views.py b/competition/views.py index 0ddbd95..99e0013 100644 --- a/competition/views.py +++ b/competition/views.py @@ -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)