fixed some json stuff with update economic

This commit is contained in:
Justin 2023-06-14 17:29:00 +08:00 committed by GitHub
parent bd6e28272a
commit 97f47ed458
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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