Update stockTicker.py

This commit is contained in:
Justin 2023-03-30 18:36:39 +08:00 committed by GitHub
parent c8284e6f46
commit 74b31b3257
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2180,7 +2180,7 @@ class StockTicker():
prechange = '%.2f' % abs(float(prepost_settings[symbol]['Pre-market']['prechange']))
prepercent = '%.2f' % abs(float(prepost_settings[symbol]['Pre-market']['prepercent']))
premkt_img = self.textImage('Pre-Mkt'.upper(), font, r=255, g=255, b=0)
premkt_img = self.textImage('Pre-Mkt', font, r=255, g=255, b=0)
if '-' in prepost_settings[symbol]['Pre-market']['prechange']:
preprice_img = self.textImage(preprice, font, r = 255, g = 0 , b = 0)
prechange_img = self.textImage(prechange, font, r = 255, g = 0, b = 0)
@ -2208,7 +2208,7 @@ class StockTicker():
postchange = '%.2f' % abs(float(prepost_settings[symbol]['Post-market']['postchange']))
postpercent = '%.2f' % abs(float(prepost_settings[symbol]['Post-market']['postpercent']))
postmkt_img = self.textImage('After-Hrs'.upper(), font, r=255, g=255, b=0)
postmkt_img = self.textImage('After-Hrs', font, r=255, g=255, b=0)
if '-' in prepost_settings[symbol]['Post-market']['postchange']:
postprice_img = self.textImage(postprice, font, r = 255, g = 0, b = 0)
postchange_img = self.textImage(postchange, font, r = 255, g = 0, b = 0)