Skip to content
This repository has been archived by the owner on Dec 23, 2023. It is now read-only.

Commit

Permalink
fix: columns size calculation for table format (#18)
Browse files Browse the repository at this point in the history
an exception was being raised when the column was of type bool
  • Loading branch information
julianolf authored Dec 21, 2019
1 parent 2408530 commit 8757ea5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion aurora_term/terminal.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ def _format_table(self, data):
for record in data:
row = []
for key, value in record.items():
sizes[key] = max(sizes[key], len(value))
sizes[key] = max(sizes[key], len(str(value)))
row.append(value)
rows.append(row)

Expand Down

0 comments on commit 8757ea5

Please sign in to comment.