add dev url for top junior api

This commit is contained in:
jain
2023-07-21 16:19:30 +05:30
parent 8013767d71
commit 2a225ea79d

View File

@ -107,10 +107,10 @@ class JuniorListAPIView(viewsets.ModelViewSet):
print("headers_token====>", headers_token)
print("os.getenv('BASE_URL')===>", os.getenv('BASE_URL'))
print("url====>", os.getenv('BASE_URL') + '/api/v1/top-junior/')
url = requests.get(os.getenv('BASE_URL') + '/api/v1/top-junior/', headers=headers_token)
print("url data====>",url)
# url = requests.get(os.getenv('BASE_URL') + '/api/v1/top-junior/', headers=headers_token)
# print("url data====>",url)
requests.get(os.getenv('BASE_URL') + '/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()
# fetch junior object
queryset = Junior.objects.filter(guardian_code__icontains=str(guardian_data.guardian_code))
@ -294,7 +294,8 @@ class JuniorPointsListAPIView(viewsets.ModelViewSet):
headers = {
'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)
serializer = JuniorPointsSerializer(queryset)
return custom_response(None, serializer.data, response_status=status.HTTP_200_OK)