Skip to content

Commit

Permalink
[sheets] fix reload() for tsv sheets with key columns
Browse files Browse the repository at this point in the history
  • Loading branch information
midichef authored and saulpw committed Aug 16, 2023
1 parent 335bd4c commit cb25ead
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions visidata/sheets.py
Original file line number Diff line number Diff line change
Expand Up @@ -869,6 +869,7 @@ class SequenceSheet(Sheet):
'Sheets with ``ColumnItem`` columns, and rows that are Python sequences (list, namedtuple, etc).'
def setCols(self, headerrows):
self.columns = []
vd.clearCaches() #1997
for i, colnamelines in enumerate(itertools.zip_longest(*headerrows, fillvalue='')):
colnamelines = ['' if c is None else c for c in colnamelines]
self.addColumn(ColumnItem(''.join(map(str, colnamelines)), i))
Expand Down

0 comments on commit cb25ead

Please sign in to comment.