From 91bb78c0da7c2ec31e8ee1502b55d28b027f37df Mon Sep 17 00:00:00 2001 From: Justin Date: Tue, 8 Aug 2023 21:39:34 +0800 Subject: [PATCH] reset list everytime... --- database_caller.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/database_caller.py b/database_caller.py index dd49004..b82ca6a 100755 --- a/database_caller.py +++ b/database_caller.py @@ -869,7 +869,10 @@ def updateMarket(api_key, logf): mostactive = data['mostactive'] gainers = data['gainers'] losers = data['losers'] - + all_market_settings['losers'] = {} + all_market_settings['gainers'] = {} + all_market_settings['mostactive'] = {} + try: for item in losers: all_market_settings['losers'][item['symbol']] = {