Skip to content

Commit

Permalink
Fix aggregate command with option --json
Browse files Browse the repository at this point in the history
PR jazzband#330 forgot to fix the aggregate command (see bug jazzband#329).
  • Loading branch information
ericguirbal committed Oct 19, 2019
1 parent f46a6ae commit c9a622e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion watson/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -836,7 +836,9 @@ 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 c9a622e

Please sign in to comment.