X-Git-Url: https://wannabe.guru.org/gitweb/?a=blobdiff_plain;f=cached%2Fweather_data.py;fp=cached%2Fweather_data.py;h=89c330aba5e17f20fd537f1d60b490bfa43e25c2;hb=d08bad64a6884f25d28a2c38c6cd1c87b4335188;hp=8d49736bae0cf264fc7447c150011f616ccec388;hpb=351e77c767c9084aa486eedbdc9902c635b06261;p=python_utils.git diff --git a/cached/weather_data.py b/cached/weather_data.py index 8d49736..89c330a 100644 --- a/cached/weather_data.py +++ b/cached/weather_data.py @@ -164,7 +164,7 @@ class CachedWeatherData(persistent.Persistent): ): self.weather_data[today].high = high continue - most_common_condition = list_utils.most_common_item(conditions[dt]) + most_common_condition = list_utils.most_common(conditions[dt]) icon = icon_by_condition.get(most_common_condition, '?') if dt == now.date() and now.hour > 18 and condition == 'Clear': icon = '🌙'