NuWeather: remove forecast=Y filter for WWIS

This commit is contained in:
James Lu 2022-06-04 16:41:47 -07:00
parent 8f5f675d65
commit 48c6f2422b

View File

@ -277,9 +277,8 @@ class NuWeather(callbacks.Plugin):
if not isinstance(member_info, dict):
continue
for city in member_info['city']:
if city['forecast'] == 'Y':
lat, lon = float(city['cityLatitude']), float(city['cityLongitude'])
self._wwis_cities[(lat, lon)] = city['cityId']
lat, lon = float(city['cityLatitude']), float(city['cityLongitude'])
self._wwis_cities[(lat, lon)] = city['cityId']
def _wwis_get_closest_city(self, location, geobackend=None):
# WWIS equivalent of geocode - finding the closest major city