Skip to content

Commit

Permalink
Merge pull request #3 from Computer-Network-Programming-Project/yemek…
Browse files Browse the repository at this point in the history
…sepeti-restaurant

Yemeksepeti restaurant
  • Loading branch information
fmelihh authored May 19, 2024
2 parents 1004eff + 6a0cf10 commit 8c3ee0d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
8 changes: 4 additions & 4 deletions src/recommendation_engine/app/domain/menu/entity/getir.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,10 +44,10 @@ def _retrieve_menu_from_api(self) -> list[dict] | None:
data = self._retrieve_json_from_response(response)

menu_list = (
data.get("pageProps")
.get("initialState")
.get("restaurantDetail")
.get("menu")
data.get("pageProps", {})
.get("initialState", {})
.get("restaurantDetail", {})
.get("menu", {})
.get("productCategories", [])
)
logger.info(f"Menu with {self.restaurant_slug} was crawled.")
Expand Down
1 change: 0 additions & 1 deletion src/recommendation_engine/app/domain/processor.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,6 @@ def synchronized_call(self, sync_call_params: SyncCallParams) -> requests.Respon
method=sync_call_params.method,
headers=sync_call_params.headers,
)
response.raise_for_status()
logger.info(
f"Sync call method was successfully completed. Requested url is: {sync_call_params.url}"
)
Expand Down

0 comments on commit 8c3ee0d

Please sign in to comment.