Aviation Units #7

Merged
dicijr merged 3 commits from master into master 2019-05-15 08:40:40 +02:00
2 changed files with 2 additions and 2 deletions
Showing only changes of commit f22f4b825f - Show all commits

View file

@ -82,7 +82,7 @@ class WeatherColumnDesign (DesignEntity):
def __get_unit__ (self, tuple): def __get_unit__ (self, tuple):
if self.forecast.units == "metric": if self.forecast.units == "metric" or self.forecast.units == "aviation":
return tuple[0] return tuple[0]
else: else:
return tuple[1] return tuple[1]

View file

@ -63,7 +63,7 @@ class WeatherHeaderDesign (DesignEntity):
self.draw_design(txt) self.draw_design(txt)
def __get_unit__ (self, tuple): def __get_unit__ (self, tuple):
if units == "metric": if units == "metric" or units == "aviation":
return tuple[0] return tuple[0]
else: else:
return tuple[1] return tuple[1]