Fix weather format

This commit is contained in:
dpedu 2015-06-22 23:06:23 -07:00
parent dddfb7a455
commit e49f831891
1 changed files with 1 additions and 1 deletions

View File

@ -136,7 +136,7 @@ class Weather(ModuleBase):
# Build 5day
fiveday = ""
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(),
"high":item["high"]["fahrenheit" if unit=="f" else "celsius"],
"low":item["low"]["fahrenheit" if unit=="f" else "celsius"],