mirror of https://github.com/apache/superset.git
druid bugfix
This commit is contained in:
parent
30513116f9
commit
0ec69a4ac5
|
@ -765,6 +765,7 @@ class Datasource(Model, AuditMixinNullable, Queryable):
|
||||||
m.metric_name: m.json_obj
|
m.metric_name: m.json_obj
|
||||||
for m in self.metrics if m.metric_name in metrics
|
for m in self.metrics if m.metric_name in metrics
|
||||||
}
|
}
|
||||||
|
granularity = granularity or "all"
|
||||||
if granularity != "all":
|
if granularity != "all":
|
||||||
granularity = utils.parse_human_timedelta(
|
granularity = utils.parse_human_timedelta(
|
||||||
granularity).total_seconds() * 1000
|
granularity).total_seconds() * 1000
|
||||||
|
|
Loading…
Reference in New Issue