fix case of Kelvin SI unit in redshift widget

This commit is contained in:
Lukas Lüftinger 2022-02-20 12:29:49 +01:00
parent 03731136b6
commit 928f8258aa

View file

@ -54,7 +54,7 @@ def get_redshift_value(module):
for line in res.split("\n"): for line in res.split("\n"):
line = line.lower() line = line.lower()
if "temperature" in line: if "temperature" in line:
widget.set("temp", line.split(" ")[2]) widget.set("temp", line.split(" ")[2].upper())
if "period" in line: if "period" in line:
state = line.split(" ")[1] state = line.split(" ")[1]
if "day" in state: if "day" in state: