fix temperature decimals on the daily forecast

This commit is contained in:
mrbwburns 2024-01-24 22:13:40 +01:00
parent c4fb668bce
commit 4d97278bc5

View File

@ -447,7 +447,7 @@ class Weather(inkycal_module):
my_forecasts = [_ for _ in weather_forecasts if arrow.get(_["datetime"]) in time_range]
# Get all temperatures for this day
daily_temp = [round(_["temp"]) for _ in my_forecasts]
daily_temp = [round(_["temp"], ndigits=dec_temp) for _ in my_forecasts]
# Calculate min. and max. temp for this day
temp_range = f'{min(daily_temp)}°/{max(daily_temp)}°'