use utf8 endoding for json output.
This commit is contained in:
parent
1ffafd25ba
commit
da57fc7c6c
@ -29,4 +29,4 @@ class FileMetadataCommand(BaseCommand):
|
|||||||
raise IllegalArgumentException(f"File `{r_basename}` not found.")
|
raise IllegalArgumentException(f"File `{r_basename}` not found.")
|
||||||
file_api = FileApi(connection)
|
file_api = FileApi(connection)
|
||||||
metadata = file_api.metadata(file)
|
metadata = file_api.metadata(file)
|
||||||
print(json.dumps(metadata))
|
print(json.dumps(metadata, ensure_ascii=False))
|
||||||
|
@ -21,4 +21,4 @@ class MetadataCommand(BaseCommand):
|
|||||||
folder = self._find_folder(connection, laboratory, r_path, args.password)
|
folder = self._find_folder(connection, laboratory, r_path, args.password)
|
||||||
folder_api = FolderApi(connection)
|
folder_api = FolderApi(connection)
|
||||||
metadata = folder_api.metadata(folder.id)
|
metadata = folder_api.metadata(folder.id)
|
||||||
print(json.dumps(metadata))
|
print(json.dumps(metadata, ensure_ascii=False))
|
||||||
|
Loading…
Reference in New Issue
Block a user