Skip to content

Commit

Permalink
feedback changes
Browse files Browse the repository at this point in the history
  • Loading branch information
tiftran committed Feb 9, 2025
1 parent 73a8874 commit 7b376e6
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,10 @@ async def explore(
country = geolocation.country
city = geolocation.city
normalized_city = normalize_string(city)
cities = [city, normalized_city] if city != normalized_city else [city]
suffix_remove = remove_locality_suffix(city)
# remove duplicates but maintain order
cities = list(dict.fromkeys([city, normalized_city, suffix_remove]))

for region in compass(weather_context.geolocation):
for city in cities:
if country and city and (country, region, city) in SKIP_CITIES_MAPPING:
Expand Down

0 comments on commit 7b376e6

Please sign in to comment.