json: fixed calls to json after orjson implementation

This commit is contained in:
RhodeCode Admin 2023-03-20 20:58:57 +01:00
parent 34af9cfa2f
commit acbe2b54a6
22 changed files with 55 additions and 45 deletions

View file

@ -251,7 +251,7 @@ def write_usage_data(event):
)
with open(dest_file, 'wb') as f:
f.write(ext_json.json.dumps(metadata, indent=2, sort_keys=True))
f.write(ext_json.formatted_json(metadata))
try:
log.debug('Writing usage file at: %s', usage_metadata_destination)