professional speed fix

This commit is contained in:
Neythen Treloar
2022-03-07 16:48:11 +00:00
4 changed files with 128 additions and 115 deletions

View File

@@ -1254,11 +1254,11 @@ class StockTicker():
arrow, change = self.getArrow(change)
percent_change = '%.2f' % abs(float(info['percent_change'])) + '%'
point_change = str(abs(change))
point_change = '%.2f' % abs(change)
print(percent_change, point_change)
current = str(float(info['current'])) #TEXT
current = '%.2f' % float(info['current']) #TEXT
@@ -1338,10 +1338,10 @@ class StockTicker():
if all_stocks_settings["percent"]:
change = '%.2f' % abs(float(info['percent_change'])) + '%'
else:
change = str(abs(change))
change = '%.2f' % abs(change)
current = str(float(info['current'])) #TEXT
current = '%.2f' % float(info['current']) #TEXT
midFrame = self.textToImageProf(ticker, current, change, arrow, font=ImageFont.load("./fonts/6x10.pil")) #IMAGE THE TEXT
if all_stocks_settings['logos']: