Update stockTicker.py

This commit is contained in:
Neythen Treloar
2022-04-11 16:55:17 +01:00
committed by GitHub
parent 09a0b8b2bf
commit 4e2859923c

View File

@@ -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))