From 615a10ec8c3b214f5100898704c82375cdcef8cb Mon Sep 17 00:00:00 2001 From: Furkan Melih Ercan Date: Sat, 7 Dec 2024 17:27:09 +0300 Subject: [PATCH] feat: cities dump created. --- src/recommendation_engine/app/tasks/restaurant.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/recommendation_engine/app/tasks/restaurant.py b/src/recommendation_engine/app/tasks/restaurant.py index 29fa1f7..7a3c962 100644 --- a/src/recommendation_engine/app/tasks/restaurant.py +++ b/src/recommendation_engine/app/tasks/restaurant.py @@ -15,7 +15,9 @@ class RestaurantTask(Task): __name__ = "RestaurantTask" def run(self, *args, **kwargs): - cities = json.load(open(f"{os.getcwd()}/static/cities.json", "r")) + cities = json.load( + open(f"{os.getcwd()}/static/{os.getenv('CITIES_JSON')}", "r") + ) for city in cities: for provider in Providers: