From bd60ac7578352741adf4a518cf82375926eb747e Mon Sep 17 00:00:00 2001 From: Nukeap <53114367+Nukeap@users.noreply.github.com> Date: Thu, 16 Jan 2025 08:05:00 +0300 Subject: [PATCH] s --- src/back/vote/views.py | 1 + src/front/src/components/vote/CurrentVote.vue | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/back/vote/views.py b/src/back/vote/views.py index 520b78db7..ebba32744 100644 --- a/src/back/vote/views.py +++ b/src/back/vote/views.py @@ -152,6 +152,7 @@ class GetResults(APIView): class VoteResultCreate(APIView): def post(self, request): + print(request.data) serializer = ResultSerializer(data=request.data) if serializer.is_valid(): diff --git a/src/front/src/components/vote/CurrentVote.vue b/src/front/src/components/vote/CurrentVote.vue index 3fce7f957..5c251cc33 100644 --- a/src/front/src/components/vote/CurrentVote.vue +++ b/src/front/src/components/vote/CurrentVote.vue @@ -132,7 +132,7 @@ export default { val.forEach(e=> voteData.push({answer_id:e,comment:null})) } console.log(voteData); - axiosApiInstance.post('api/voter',voteData).then(res=>{ + axiosApiInstance.post('api/vote/voteresultcreate/',voteData).then(res=>{ messeger.value.key='good' }).catch(e=> {