Updated To Print JS Neat

This commit is contained in:
Varun 2020-10-26 08:35:29 +05:30
parent 3b80c5cd6c
commit 7f3e49cffa
No known key found for this signature in database
GPG Key ID: 93FB46DCF16E0D6F

View File

@ -10,7 +10,7 @@ config = getConfig()
def writeLocalCache(content):
try:
with open(config['local_cache']['file_path'], 'w') as file:
file.write(json.dumps(content))
file.write(json.dumps(content, indent=4, sort_keys=True))
except:
logError('Unable To Save Local Cache !')