Fixed celcius
This commit is contained in:
parent
61fd7af37a
commit
f22f4b825f
2 changed files with 2 additions and 2 deletions
|
@ -82,7 +82,7 @@ class WeatherColumnDesign (DesignEntity):
|
|||
|
||||
|
||||
def __get_unit__ (self, tuple):
|
||||
if self.forecast.units == "metric":
|
||||
if self.forecast.units == "metric" or self.forecast.units == "aviation":
|
||||
return tuple[0]
|
||||
else:
|
||||
return tuple[1]
|
||||
|
|
|
@ -63,7 +63,7 @@ class WeatherHeaderDesign (DesignEntity):
|
|||
self.draw_design(txt)
|
||||
|
||||
def __get_unit__ (self, tuple):
|
||||
if units == "metric":
|
||||
if units == "metric" or units == "aviation":
|
||||
return tuple[0]
|
||||
else:
|
||||
return tuple[1]
|
||||
|
|
Loading…
Reference in a new issue