From 5dbeff70acfbb3ef424a37901822ab283bc2e025 Mon Sep 17 00:00:00 2001 From: through-your-tears Date: Sun, 7 Apr 2024 01:15:49 +0300 Subject: [PATCH] =?UTF-8?q?=D0=94=D0=BE=D0=B1=D0=B0=D0=B2=D0=BB=D0=B5?= =?UTF-8?q?=D0=BD=D0=B0=20=D0=B2=D1=8B=D0=B4=D0=B0=D1=87=D0=B0=20=D0=BF?= =?UTF-8?q?=D0=BE=20=D1=82=D0=BE=D1=87=D0=BA=D0=B0=D0=BC=20=D0=BD=D0=B0=20?= =?UTF-8?q?=D0=BA=D0=B0=D1=80=D1=82=D0=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/organizations/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/organizations/views.py b/src/organizations/views.py index 8f45679..b77432f 100644 --- a/src/organizations/views.py +++ b/src/organizations/views.py @@ -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: