From 0e2dcc38b9c0780ca0067359bb982d834c13e95a Mon Sep 17 00:00:00 2001 From: through-your-tears Date: Sun, 7 Apr 2024 12:41:21 +0300 Subject: [PATCH] ... --- src/organizations/services.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/organizations/services.py b/src/organizations/services.py index c28d102..09ca906 100644 --- a/src/organizations/services.py +++ b/src/organizations/services.py @@ -63,7 +63,7 @@ def parse_organizations_to_db(data): def send_locations_to_recommend_service(): for org in OrganizationRepository.all(): - requests.post(url=settings.RECOMMEND_BASE_API_URL, data={ + requests.post(url=settings.RECOMMEND_BASE_API_URL + 'add_location/', data={ "location_id": org.location.pk, "category_id": org.category.pk, "latitude": org.location.coords[0], @@ -88,4 +88,4 @@ def get_recommendation(user, now_location): "latitude": now_location[0], "longitude": now_location[1] }) - requests.post(url=settings.RECOMMEND_BASE_API_URL, data=data) + requests.post(url=settings.RECOMMEND_BASE_API_URL + '', data=data)