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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2075,11 +2075,8 @@ class StockTicker():
temp = current_weather['temp'] temp = self.convertTemp(current_weather['temp'], all_settings['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_img = self.textImage(str("{0:.0f}".format(temp)), font) temp_img = self.textImage(str("{0:.0f}".format(temp)), font)
img.paste(temp_img, (x_offset,3)) img.paste(temp_img, (x_offset,3))