Skip to content

Commit

Permalink
v4.9.0
Browse files Browse the repository at this point in the history
- Adjusted how the city and currency data from GraphQL response are checked
- Adjusted tests for check_info func
  • Loading branch information
sakan811 committed Jul 3, 2024
1 parent cc7b771 commit ffefc4d
Show file tree
Hide file tree
Showing 2 changed files with 380 additions and 5 deletions.
2 changes: 1 addition & 1 deletion japan_avg_hotel_price_finder/graphql_scraper.py
Original file line number Diff line number Diff line change
Expand Up @@ -462,7 +462,7 @@ def check_info(
city_data = check_city_data(data)
selected_currency_data = check_currency_data(data)

if total_page_num and city_data and selected_currency_data:
if total_page_num:
data_mapping = {
"city": city_data,
"check_in": data['data']['searchQueries']['search']['flexibleDatesConfig']['dateRangeCalendar']['checkin'][0],
Expand Down
Loading

0 comments on commit ffefc4d

Please sign in to comment.