Skip to content

Commit

Permalink
[table] show 'Time' column header instead of '__timestamp' (#3880)
Browse files Browse the repository at this point in the history
  • Loading branch information
mistercrunch authored Nov 16, 2017
1 parent 3a8af5d commit 85b18ff
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions superset/connectors/base/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -145,10 +145,11 @@ def data(self):
order_by_choices.append((json.dumps([s, True]), s + ' [asc]'))
order_by_choices.append((json.dumps([s, False]), s + ' [desc]'))

verbose_map = {
verbose_map = {'__timestamp': 'Time'}
verbose_map.update({
o.metric_name: o.verbose_name or o.metric_name
for o in self.metrics
}
})
verbose_map.update({
o.column_name: o.verbose_name or o.column_name
for o in self.columns
Expand Down

0 comments on commit 85b18ff

Please sign in to comment.