Various changes
[python_utils.git] / cached / weather_forecast.py
index 4be53c8367c5d26fbbf1d29abe987ae0ae4ad85d..6e2f5f9ca0ffcc9eae3d2c7d6615549fb222a0db 100644 (file)
@@ -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()}'