Pijush2023 commited on
Commit
a77b253
·
verified ·
1 Parent(s): 8f378a1

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -4
app.py CHANGED
@@ -978,8 +978,7 @@ def fetch_hotels_birmingham():
978
  "check_out_date": (datetime.now() + timedelta(days=2)).strftime("%Y-%m-%d"),
979
  "vacation_rentals": "true",
980
  "amenities": "2,4,10,15,16,20,21,24,29,32",
981
- "rating": "7,8,9",
982
- "hotel_class": "2,3,4,5",
983
  "currency": "USD",
984
  "gl": "us",
985
  "hl": "en",
@@ -1006,7 +1005,6 @@ def fetch_hotels_birmingham():
1006
  location = f"{name}, Birmingham, AL"
1007
  price = hotel.get("price", "Price not available")
1008
  link = hotel.get("link", "#")
1009
- hotel_class = hotel.get("hotel_class", "Not available")
1010
  amenities = hotel.get("amenities", "Amenities not available")
1011
 
1012
  if isinstance(amenities, list):
@@ -1016,7 +1014,6 @@ def fetch_hotels_birmingham():
1016
  response_text += f"[{name}]({link})\n" # Name with clickable link, no bold
1017
  response_text += f"*{location}*\n" # Location with hotel name and "Birmingham, AL"
1018
  response_text += f"**Price:** {price}\n"
1019
- response_text += f"**Hotel Class:** {hotel_class} stars\n"
1020
  response_text += f"**Amenities:** {amenities}\n"
1021
  response_text += f"**Rating:** {star_rating(rating)} ({rating} stars, {reviews} reviews)\n"
1022
  response_text += "-" * 50 + "\n"
 
978
  "check_out_date": (datetime.now() + timedelta(days=2)).strftime("%Y-%m-%d"),
979
  "vacation_rentals": "true",
980
  "amenities": "2,4,10,15,16,20,21,24,29,32",
981
+ "rating": (7,8,9),
 
982
  "currency": "USD",
983
  "gl": "us",
984
  "hl": "en",
 
1005
  location = f"{name}, Birmingham, AL"
1006
  price = hotel.get("price", "Price not available")
1007
  link = hotel.get("link", "#")
 
1008
  amenities = hotel.get("amenities", "Amenities not available")
1009
 
1010
  if isinstance(amenities, list):
 
1014
  response_text += f"[{name}]({link})\n" # Name with clickable link, no bold
1015
  response_text += f"*{location}*\n" # Location with hotel name and "Birmingham, AL"
1016
  response_text += f"**Price:** {price}\n"
 
1017
  response_text += f"**Amenities:** {amenities}\n"
1018
  response_text += f"**Rating:** {star_rating(rating)} ({rating} stars, {reviews} reviews)\n"
1019
  response_text += "-" * 50 + "\n"