summaryrefslogtreecommitdiff
path: root/cached
diff options
context:
space:
mode:
authorScott Gasch <[email protected]>2021-09-28 23:27:51 -0700
committerScott Gasch <[email protected]>2021-09-28 23:27:51 -0700
commit986d5f7ada15e56019518db43d07b76f94468e1a (patch)
treeac3460a13667ac3dc8aa1e84c6b4fc8cfee648dc /cached
parent0bc6e4312cad0f997751739e750954ac39dfa6cc (diff)
Various changes
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()}'