From 8d03b0dc98e7f54c682865b93fdd67ed2a082f74 Mon Sep 17 00:00:00 2001 From: Cja Date: Wed, 22 Jan 2025 14:41:34 +0300 Subject: [PATCH] =?UTF-8?q?P-117,=20=D0=B4=D0=BE=D0=B1=D0=B0=D0=B2=D0=BB?= =?UTF-8?q?=D0=B5=D0=BD=D0=B8=D0=B5=20=D0=B2=20=D1=80=D0=B5=D0=B7=D1=83?= =?UTF-8?q?=D0=BB=D1=8C=D1=82=D0=B0=D1=82=D1=8B=20=D0=BD=D0=B5=D0=BF=D1=80?= =?UTF-8?q?=D0=BE=D0=B3=D0=BE=D0=BB.=D0=BF=D0=BE=D0=BB=D1=8C=D0=B7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/back/vote/views.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/back/vote/views.py b/src/back/vote/views.py index 8462ad9d5..4ad4f7130 100644 --- a/src/back/vote/views.py +++ b/src/back/vote/views.py @@ -198,6 +198,9 @@ class GetResults(APIView): if answer['name'] in answers_names: answer['employee'] = employee_dict.get(int(answer['name'])) + participants = Participant.objects.filter(vote=vote) + serialized_data['nonvoting'] = ParticipantSerializer(participants, many=True).data + return Response(serialized_data) from rest_framework.views import exception_handler