Browse Source

Merge pull request #383 from alzalia1/weatherpy-bugfix

Weather.py bug fix (max/min temp mismatch)
development
Ja.KooLit 2 years ago committed by GitHub
parent
commit
17a8199707
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 4
      config/hypr/UserScripts/Weather.py

4
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}"

Loading…
Cancel
Save