From 4e2859923c59bd44a591dfede5948f0babed9a33 Mon Sep 17 00:00:00 2001 From: Neythen Treloar <33317183+zcqsntr@users.noreply.github.com> Date: Mon, 11 Apr 2022 16:55:17 +0100 Subject: [PATCH] Update stockTicker.py --- stockTicker.py | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/stockTicker.py b/stockTicker.py index dfd3a44..65a3ad9 100755 --- a/stockTicker.py +++ b/stockTicker.py @@ -2075,11 +2075,8 @@ class StockTicker(): - temp = current_weather['temp'] - if all_settings['temp'] == 'kelvin': - temp = current_weather['temp'] + 273.15 - elif all_settings['temp'] == 'fahrenheit': - temp = current_weather['temp']*9/5 + 32 + temp = self.convertTemp(current_weather['temp'], all_settings['temp']) + temp_img = self.textImage(str("{0:.0f}".format(temp)), font) img.paste(temp_img, (x_offset,3))