Skip to content

Commit

Permalink
tabular: show number of columns
Browse files Browse the repository at this point in the history
fixes #13258
  • Loading branch information
bernt-matthias committed May 12, 2022
1 parent 4160a90 commit 62ce926
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/galaxy/datatypes/tabular.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@ def set_meta(self, dataset, **kwd):

def set_peek(self, dataset, line_count=None, WIDTH=256, skipchars=None, line_wrap=False, **kwd):
super().set_peek(dataset, line_count=line_count, WIDTH=WIDTH, skipchars=skipchars, line_wrap=line_wrap)
dataset.blurb = f"{dataset.blurb} {dataset.metadata.columns} columns"
if dataset.metadata.comment_lines:
dataset.blurb = f"{dataset.blurb}, {util.commaify(str(dataset.metadata.comment_lines))} comments"

Expand Down

0 comments on commit 62ce926

Please sign in to comment.