From 3301c62d9571b52b53d70202c30422a22fa6b54b Mon Sep 17 00:00:00 2001 From: alzalia1 Date: Thu, 11 Jul 2024 14:08:27 +0200 Subject: [PATCH] fix: fix bug on Weather.py reversing min/max temp --- config/hypr/UserScripts/Weather.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/config/hypr/UserScripts/Weather.py b/config/hypr/UserScripts/Weather.py index 1d2ea30..c0a40fd 100755 --- a/config/hypr/UserScripts/Weather.py +++ b/config/hypr/UserScripts/Weather.py @@ -63,12 +63,12 @@ temp_feel_text = f"Feels like {temp_feel}c" # min-max temperature temp_min = ( html_data("div[data-testid='wxData'] > span[data-testid='TemperatureValue']") - .eq(0) + .eq(1) .text() ) temp_max = ( html_data("div[data-testid='wxData'] > span[data-testid='TemperatureValue']") - .eq(1) + .eq(0) .text() ) temp_min_max = f"ī‹‹ {temp_min}\t\t {temp_max}"