summaryrefslogtreecommitdiff
path: root/cached
diff options
context:
space:
mode:
Diffstat (limited to 'cached')
-rw-r--r--cached/weather_forecast.py5
1 files changed, 3 insertions, 2 deletions
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()}'