diff --git a/Calendar/WeatherColumnDesign.py b/Calendar/WeatherColumnDesign.py index 3c5c165..14d781c 100644 --- a/Calendar/WeatherColumnDesign.py +++ b/Calendar/WeatherColumnDesign.py @@ -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] diff --git a/Calendar/WeatherHeaderDesign.py b/Calendar/WeatherHeaderDesign.py index c6d21aa..eadcff8 100644 --- a/Calendar/WeatherHeaderDesign.py +++ b/Calendar/WeatherHeaderDesign.py @@ -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]