mirror of
https://github.com/HamzaSha1/zod-backend.git
synced 2025-11-26 08:34:55 +00:00
add qa top -junior url
This commit is contained in:
@ -110,7 +110,7 @@ class JuniorListAPIView(viewsets.ModelViewSet):
|
|||||||
# url = requests.get(os.getenv('BASE_URL') + '/api/v1/top-junior/', headers=headers_token)
|
# url = requests.get(os.getenv('BASE_URL') + '/api/v1/top-junior/', headers=headers_token)
|
||||||
# print("url data====>",url)
|
# print("url data====>",url)
|
||||||
|
|
||||||
requests.get('https://dev-api.zodqaapp.com/api/v1/top-junior/', headers=headers_token)
|
# requests.get('https://dev-api.zodqaapp.com/api/v1/top-junior/', headers=headers_token)
|
||||||
guardian_data = Guardian.objects.filter(user__email=request.user).last()
|
guardian_data = Guardian.objects.filter(user__email=request.user).last()
|
||||||
# fetch junior object
|
# fetch junior object
|
||||||
queryset = Junior.objects.filter(guardian_code__icontains=str(guardian_data.guardian_code))
|
queryset = Junior.objects.filter(guardian_code__icontains=str(guardian_data.guardian_code))
|
||||||
@ -295,7 +295,7 @@ class JuniorPointsListAPIView(viewsets.ModelViewSet):
|
|||||||
'Authorization': token
|
'Authorization': token
|
||||||
}
|
}
|
||||||
# requests.get(os.getenv('BASE_URL') + '/api/v1/top-junior/', headers=headers)
|
# requests.get(os.getenv('BASE_URL') + '/api/v1/top-junior/', headers=headers)
|
||||||
requests.get('https://dev-api.zodqaapp.com/api/v1/top-junior/', headers=headers)
|
# requests.get('https://dev-api.zodqaapp.com/api/v1/top-junior/', headers=headers)
|
||||||
serializer = JuniorPointsSerializer(queryset)
|
serializer = JuniorPointsSerializer(queryset)
|
||||||
return custom_response(None, serializer.data, response_status=status.HTTP_200_OK)
|
return custom_response(None, serializer.data, response_status=status.HTTP_200_OK)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user