lohivol basic setup

This commit is contained in:
Justin 2023-08-03 19:24:42 +08:00 committed by GitHub
parent 206fd96dcd
commit 7874186761
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1964,6 +1964,18 @@ class StockTicker():
else: else:
stitchedStock = midFrame stitchedStock = midFrame
try:
if all_stocks_settings['lohivol']:
font = ImageFont.load("./fonts/5x8.pil")
try:
day_low = '%.2f' % float(info['day_low'])
day_high = '%.2f' % float(info['day_high'])
volume = info['volume']
except:
pass
except:
pass
try: try:
if all_stocks_settings['prepost']: if all_stocks_settings['prepost']:
font = ImageFont.load("./fonts/6x13.pil") font = ImageFont.load("./fonts/6x13.pil")
@ -2128,7 +2140,14 @@ class StockTicker():
pass pass
image_list.append(stitchedStock) image_list.append(stitchedStock)
try:
if all_stocks_settings['lohivol']:
try:
image_list.append(lohivol_img)
except:
pass
except:
pass
try: try:
if all_stocks_settings['prepost']: if all_stocks_settings['prepost']:
try: try:
@ -2137,7 +2156,6 @@ class StockTicker():
pass pass
except: except:
pass pass
try: try:
if all_stocks_settings['chart'] and (symbol in portfolio_settings): if all_stocks_settings['chart'] and (symbol in portfolio_settings):
try: try: