Fixed celcius

This commit is contained in:
dicijr 2019-05-15 00:23:08 -04:00 committed by GitHub
parent 61fd7af37a
commit f22f4b825f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

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]