From 103493902de7654576ee323bc06f3de5aa8bbd66 Mon Sep 17 00:00:00 2001 From: through-your-tears Date: Sun, 7 Apr 2024 12:43:53 +0300 Subject: [PATCH] ... --- src/organizations/services.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/organizations/services.py b/src/organizations/services.py index 09ca906..58e4687 100644 --- a/src/organizations/services.py +++ b/src/organizations/services.py @@ -63,12 +63,13 @@ 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 + 'add_location/', data={ + res = 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], "longitude": org.location.coords[1] }) + print(res.status_code()) def get_recommendation(user, now_location):