reset list everytime...

This commit is contained in:
Justin 2023-08-08 21:39:34 +08:00 committed by GitHub
parent b67295afa7
commit 91bb78c0da
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -869,7 +869,10 @@ def updateMarket(api_key, logf):
mostactive = data['mostactive'] mostactive = data['mostactive']
gainers = data['gainers'] gainers = data['gainers']
losers = data['losers'] losers = data['losers']
all_market_settings['losers'] = {}
all_market_settings['gainers'] = {}
all_market_settings['mostactive'] = {}
try: try:
for item in losers: for item in losers:
all_market_settings['losers'][item['symbol']] = { all_market_settings['losers'][item['symbol']] = {