mirror of
https://github.com/apache/superset.git
synced 2026-06-01 13:49:21 +00:00
Tunning timeseries settings
This commit is contained in:
@@ -919,7 +919,10 @@ class Datasource(Model, AuditMixinNullable, Queryable):
|
||||
if df is None or df.size == 0:
|
||||
raise Exception("No data was returned.")
|
||||
|
||||
if not is_timeseries and 'timestamp' in df.columns:
|
||||
if (
|
||||
not is_timeseries and
|
||||
granularity == "all"
|
||||
and 'timestamp' in df.columns):
|
||||
del df['timestamp']
|
||||
|
||||
# Reordering columns
|
||||
|
||||
@@ -287,7 +287,7 @@ class TableViz(BaseViz):
|
||||
'lib/dataTables/dataTables.bootstrap.css',
|
||||
'widgets/viz_table.css',
|
||||
]
|
||||
is_timeseries = True
|
||||
is_timeseries = False
|
||||
js_files = [
|
||||
'lib/d3.min.js',
|
||||
'lib/dataTables/jquery.dataTables.min.js',
|
||||
|
||||
Reference in New Issue
Block a user