From 4d97278bc54d40ddbcd508a55c27e899e3b624b8 Mon Sep 17 00:00:00 2001 From: mrbwburns <> Date: Wed, 24 Jan 2024 22:13:40 +0100 Subject: [PATCH] fix temperature decimals on the daily forecast --- inkycal/modules/inkycal_weather.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/inkycal/modules/inkycal_weather.py b/inkycal/modules/inkycal_weather.py index 990f710..992030e 100644 --- a/inkycal/modules/inkycal_weather.py +++ b/inkycal/modules/inkycal_weather.py @@ -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)}°'