diff options
| author | Donald Williams <129223418+dwilliam62@users.noreply.github.com> | 2025-09-21 03:47:46 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-09-21 03:47:46 -0400 |
| commit | ea67f06735c4ebf5e02d3fc8a83a53311e1ad97a (patch) | |
| tree | d5fe50b00d633e0877abb6a94cfe51bc39bd5b97 /config/hypr/UserScripts/Weather.py | |
| parent | 88f1b4d4ebbcdb58daecbbee2c0cdab791366452 (diff) | |
Update Weather.py - index out of range
Changed index to resolve "index out of range error"
Fix provided by mio-dokuhaki tested and verified
Diffstat (limited to 'config/hypr/UserScripts/Weather.py')
| -rwxr-xr-x | config/hypr/UserScripts/Weather.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/config/hypr/UserScripts/Weather.py b/config/hypr/UserScripts/Weather.py index efa96813..a8b70417 100755 --- a/config/hypr/UserScripts/Weather.py +++ b/config/hypr/UserScripts/Weather.py @@ -59,7 +59,8 @@ status = html_data("div[data-testid='wxPhrase']").text() status = f"{status[:16]}.." if len(status) > 17 else status # status code -status_code = html_data("#regionHeader").attr("class").split(" ")[2].split("-")[2] +# Fix provided by mio-dokuhaki +status_code = html_data("#regionHeader").attr("class").split(" ")[1].split("-")[0] # status icon icon = ( |
