Skip to content

Commit

Permalink
[fix] #74 - CLI transactions command cannot handle optional columns i…
Browse files Browse the repository at this point in the history
…n CSV output
  • Loading branch information
grindsa committed Dec 22, 2024
1 parent 2000233 commit 86b2775
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dkb_robo/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,7 @@ def _load_format(output_format):
def formatter(data): # pragma: no cover
if len(data) == 0:
return
writer = csv.DictWriter(sys.stdout, data[0].keys())
writer = csv.DictWriter(sys.stdout, fieldnames=data[0].keys(), restval="", extrasaction="ignore")
writer.writeheader()
writer.writerows(data)

Expand Down

0 comments on commit 86b2775

Please sign in to comment.