X-Git-Url: https://wannabe.guru.org/gitweb/?a=blobdiff_plain;ds=sidebyside;f=cached%2Fweather_forecast.py;fp=cached%2Fweather_forecast.py;h=6e2f5f9ca0ffcc9eae3d2c7d6615549fb222a0db;hb=986d5f7ada15e56019518db43d07b76f94468e1a;hp=4be53c8367c5d26fbbf1d29abe987ae0ae4ad85d;hpb=0bc6e4312cad0f997751739e750954ac39dfa6cc;p=python_utils.git diff --git a/cached/weather_forecast.py b/cached/weather_forecast.py index 4be53c8..6e2f5f9 100644 --- a/cached/weather_forecast.py +++ b/cached/weather_forecast.py @@ -102,8 +102,9 @@ class CachedDetailedWeatherForecast(object): sunrise = s['sunrise'] sunset = s['sunset'] - if dt.date == now.date and not said_temp: - blurb = f'{day.get_text()}: The current outside tempterature is {current_temp}. ' + txt.get_text() + if dt.date() == now.date() and not said_temp: + blurb = f'{day.get_text()}: The current outside tempterature is {current_temp}. ' + blurb += txt.get_text() said_temp = True else: blurb = f'{day.get_text()}: {txt.get_text()}'