Добавлена выдача по точкам на карте

main
through-your-tears 9 months ago
parent 5c2dcf86b7
commit 5dbeff70ac

@ -65,7 +65,7 @@ class OrganizationMapFilterAPIView(ListAPIView):
serializer_class = OrganizationListSerializer
def get_queryset(self):
ids = list(map(int, self.request.query_params.get('id')))
ids = list(map(int, self.request.query_params.get('id').split(',')))
coords1 = (float(self.request.query_params.get('lat1')), float(self.request.query_params.get('lon1')))
coords2 = (float(self.request.query_params.get('lat2')), float(self.request.query_params.get('lon2')))
if ids and coords1 and coords2:

Loading…
Cancel
Save