From f0e061e3fef5fcba195cf13be74ef5b1fd529761 Mon Sep 17 00:00:00 2001 From: "Tomi P. Hakala" Date: Sun, 5 Jan 2025 14:02:50 +0200 Subject: [PATCH] fix: update weather icon and description rendering in detection list - Changed the weather icon retrieval to use the correct icon code for improved accuracy. - Updated the display of weather descriptions to provide clearer information based on the weather icon. - This enhancement improves the user interface by ensuring that weather data is presented more intuitively. --- views/fragments/listDetections.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/views/fragments/listDetections.html b/views/fragments/listDetections.html index 113780a..e881c3a 100644 --- a/views/fragments/listDetections.html +++ b/views/fragments/listDetections.html @@ -91,8 +91,8 @@ {{if .Weather}}
- {{weatherIcon .Weather.WeatherMain .TimeOfDay}} - {{.Weather.WeatherMain}} + {{weatherIcon .Weather.WeatherIcon .TimeOfDay}} + {{weatherDescription .Weather.WeatherIcon}}
{{else}}
No weather data