Skip to content
Snippets Groups Projects
Commit 0126b04a authored by Cain, Payton David's avatar Cain, Payton David
Browse files

Clean up prints for get method

parent 48037d19
No related branches found
No related tags found
2 merge requests!146Release CMO metadata to production,!65Metadata client
...@@ -154,13 +154,13 @@ def get( ...@@ -154,13 +154,13 @@ def get(
) )
metadata = MetadataFactory(url=url).get_metadata(query=query) metadata = MetadataFactory(url=url).get_metadata(query=query)
if unwrap: if unwrap:
data = [m.metadata for m in metadata] metadata = [json.dumps(m.metadata) for m in metadata]
if len(data) == 1: else:
print(json.dumps(data[0])) metadata = [m.json() for m in metadata]
print([json.dumps(d) for d in data])
if len(metadata) == 1: if len(metadata) == 1:
print(metadata[0].json()) print(metadata[0])
print([m.json() for m in metadata]) return
print(metadata)
@app.command() @app.command()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment