From 48c6f2422bfaba7c09307c650416e593c8f135e9 Mon Sep 17 00:00:00 2001 From: James Lu Date: Sat, 4 Jun 2022 16:41:47 -0700 Subject: [PATCH] NuWeather: remove forecast=Y filter for WWIS --- NuWeather/plugin.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/NuWeather/plugin.py b/NuWeather/plugin.py index e605ea6..b9caa4a 100644 --- a/NuWeather/plugin.py +++ b/NuWeather/plugin.py @@ -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