Skip to content

Commit

Permalink
Fix aggregate command with option --json
Browse files Browse the repository at this point in the history
PR #330 forgot to fix the aggregate command (see bug #329).
  • Loading branch information
ericguirbal committed Oct 19, 2019
1 parent f46a6ae commit 0c4bea2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion watson/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -836,7 +836,8 @@ def aggregate(ctx, watson, current, from_, to, projects, tags, output_format,
lines.append(u'\n'.join(output))

if 'json' in output_format:
click.echo(json.dumps(lines, indent=4, sort_keys=True))
click.echo(json.dumps(lines, indent=4, sort_keys=True,
default=json_arrow_encoder))
elif 'csv' in output_format:
click.echo(build_csv(lines))
elif pager or (pager is None and
Expand Down

0 comments on commit 0c4bea2

Please sign in to comment.