missed something

This commit is contained in:
Justin 2023-08-03 16:55:57 +08:00 committed by GitHub
parent 98ee21b78d
commit 596a8cf991
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -177,7 +177,7 @@ def updateStocks(api_key, logf):
if len(data) > 0: if len(data) > 0:
for symbol in symbols: for symbol in symbols:
try: try:
stock_info[data[symbol]['quote']['symbol']] = {'current': data[symbol]['quote']['latestPrice'], 'change': data[symbol]['quote']['change'], 'percent_change':data[symbol]['quote']['changePercent'] * 100, 'day_low':data[symbol]['low'], 'day_high':data[symbol]['high'], 'volume':data[symbol]['latestVolume']} stock_info[data[symbol]['quote']['symbol']] = {'current': data[symbol]['quote']['latestPrice'], 'change': data[symbol]['quote']['change'], 'percent_change':data[symbol]['quote']['changePercent'] * 100, 'day_low':data[symbol]['quote']['low'], 'day_high':data[symbol]['quote']['high'], 'volume':data[symbol]['quote']['latestVolume']}
except: except:
pass pass
all_stocks_settings['symbols'] = stock_info all_stocks_settings['symbols'] = stock_info