Fixed issues
This commit is contained in:
parent
aa34b8bc4f
commit
9b1ceba95e
1 changed files with 3 additions and 3 deletions
|
@ -30,9 +30,9 @@ class WeatherColumnDesign (DesignEntity):
|
||||||
def __draw_infos__ (self, forecast):
|
def __draw_infos__ (self, forecast):
|
||||||
temperature = forecast.air_temperature + " " + self.__get_unit__(("°C", "°F"))
|
temperature = forecast.air_temperature + " " + self.__get_unit__(("°C", "°F"))
|
||||||
humidity = forecast.air_humidity + "%"
|
humidity = forecast.air_humidity + "%"
|
||||||
if self.forecast.units== "aviation":
|
if forecast.units== "aviation":
|
||||||
if cur_weather.wind_deg == None:
|
if forecast.wind_deg == None:
|
||||||
cur_weather.wind_deg = ""
|
forecast.wind_deg = ""
|
||||||
elif len(forecast.wind_deg)==1:
|
elif len(forecast.wind_deg)==1:
|
||||||
forecast.wind_deg = "00" + forecast.wind_deg
|
forecast.wind_deg = "00" + forecast.wind_deg
|
||||||
elif len(forecast.wind_deg)==2:
|
elif len(forecast.wind_deg)==2:
|
||||||
|
|
Loading…
Reference in a new issue