Skip to content

Commit

Permalink
STyle fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
SchrodingersGat committed Nov 15, 2024
1 parent c0c2f92 commit 5dcd821
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test_statistics/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
from rest_framework import permissions
from rest_framework.views import APIView

from . import serializers as StatisticsSerializers
from . import serializers


class TestStatisticsView(APIView):
Expand All @@ -18,7 +18,7 @@ def get(self, request):
"""Generate test statistics data based on the provided parameters."""

# Extract filter parameters from the request
serializer = StatisticsSerializers.TestStatisticsRequestSerializer(data=request.query_params)
serializer = serializers.TestStatisticsRequestSerializer(data=request.query_params)
serializer.is_valid(raise_exception=True)

params = cast(dict, serializer.validated_data)
Expand Down Expand Up @@ -52,7 +52,7 @@ def get(self, request):
# Serialize the results
template_list = list(template_data.values())

data = StatisticsSerializers.TestStatisticsSerializer(template_list, many=True).data
data = serializers.TestStatisticsSerializer(template_list, many=True).data

return Response(data)

Expand Down

0 comments on commit 5dcd821

Please sign in to comment.