Fix printing

master
Salvo 'LtWorf' Tomaselli 2020-08-19 08:25:52 +07:00
parent 90b3163e32
commit 69f7e83626
No known key found for this signature in database
GPG Key ID: B3A7CF0C801886CF
1 changed files with 2 additions and 2 deletions

@ -382,7 +382,7 @@ class Relation(NamedTuple):
m_len = [len(i) for i in self.header] # Maximum lenght string
for f in self.content:
for col, i in enumerate(f):
for col, i in enumerate(str(val) for val in f):
if len(i) > m_len[col]:
m_len[col] = len(i)
@ -392,7 +392,7 @@ class Relation(NamedTuple):
for r in self.content:
res += "\n"
for col, i in enumerate(r):
for col, i in enumerate(str(val) for val in r):
res += i.ljust(2 + m_len[col])
return res