Fix weather format
This commit is contained in:
parent
dddfb7a455
commit
e49f831891
|
@ -136,7 +136,7 @@ class Weather(ModuleBase):
|
||||||
# Build 5day
|
# Build 5day
|
||||||
fiveday = ""
|
fiveday = ""
|
||||||
for item in data["forecast"]["simpleforecast"]["forecastday"][1:6]:
|
for item in data["forecast"]["simpleforecast"]["forecastday"][1:6]:
|
||||||
fiveday += "%(day)s%(icon)s%(low)s-%(high)s°%(unit)s • " % {
|
fiveday += "%(day)s %(icon)s %(low)s-%(high)s°%(unit)s • " % {
|
||||||
"unit":unit.upper(),
|
"unit":unit.upper(),
|
||||||
"high":item["high"]["fahrenheit" if unit=="f" else "celsius"],
|
"high":item["high"]["fahrenheit" if unit=="f" else "celsius"],
|
||||||
"low":item["low"]["fahrenheit" if unit=="f" else "celsius"],
|
"low":item["low"]["fahrenheit" if unit=="f" else "celsius"],
|
||||||
|
|
Loading…
Reference in New Issue