From 7a65fc9d53afa5ec0808f8e32794b2559c6cf4d4 Mon Sep 17 00:00:00 2001 From: Maxime Beauchemin Date: Wed, 15 Nov 2017 22:07:27 -0800 Subject: [PATCH] [table] show 'Time' column header instead of '__timestamp' --- superset/connectors/base/models.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/superset/connectors/base/models.py b/superset/connectors/base/models.py index 8042ac9c1e037..7ce19145439dd 100644 --- a/superset/connectors/base/models.py +++ b/superset/connectors/base/models.py @@ -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