Skip to content

Commit

Permalink
Update .json() calls in cli.analyze.
Browse files Browse the repository at this point in the history
  • Loading branch information
SyntaxColoring committed May 23, 2024
1 parent 7d73026 commit 14bc816
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions api/src/opentrons/cli/analyze.py
Original file line number Diff line number Diff line change
Expand Up @@ -255,14 +255,14 @@ async def _analyze(
"json",
outputs,
lambda to_file: to_file.write(
results.json(exclude_none=True).encode("utf-8"),
results.model_dump_json(exclude_none=True).encode("utf-8"),
),
)
_call_for_output_of_kind(
"human-json",
outputs,
lambda to_file: to_file.write(
results.json(exclude_none=True, indent=2).encode("utf-8")
results.model_dump_json(exclude_none=True, indent=2).encode("utf-8")
),
)
if check:
Expand Down

0 comments on commit 14bc816

Please sign in to comment.