From 97f47ed4586f017563b5ec82ae30251567af1a7e Mon Sep 17 00:00:00 2001 From: Justin Date: Wed, 14 Jun 2023 17:29:00 +0800 Subject: [PATCH] fixed some json stuff with update economic --- database_caller.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/database_caller.py b/database_caller.py index 65f779d..6270c91 100755 --- a/database_caller.py +++ b/database_caller.py @@ -799,11 +799,9 @@ def updateEconomic(api_key, logf): pass except: pass - all_economic_settings['events'] = events - with open('csv/economic_settings.json', 'w') as f: - f.write(all_economic_settings) + json.dump(all_economic_settings, f) except: pass