From f22f4b825f5c7f832c1db43c3bde9fd2efcca94a Mon Sep 17 00:00:00 2001 From: dicijr <42663206+dicijr@users.noreply.github.com> Date: Wed, 15 May 2019 00:23:08 -0400 Subject: [PATCH] Fixed celcius --- Calendar/WeatherColumnDesign.py | 2 +- Calendar/WeatherHeaderDesign.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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]