missed something
This commit is contained in:
parent
98ee21b78d
commit
596a8cf991
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user