mirror of
https://github.com/apache/superset.git
synced 2026-04-19 08:04:53 +00:00
fix(query-object): extra time-range-endpoints (#13331)
Co-authored-by: John Bodley <john.bodley@airbnb.com>
This commit is contained in:
@@ -181,8 +181,10 @@ class QueryObject:
|
||||
self.order_desc = order_desc
|
||||
self.extras = extras
|
||||
|
||||
if config["SIP_15_ENABLED"] and "time_range_endpoints" not in self.extras:
|
||||
self.extras["time_range_endpoints"] = get_time_range_endpoints(form_data={})
|
||||
if config["SIP_15_ENABLED"]:
|
||||
self.extras["time_range_endpoints"] = get_time_range_endpoints(
|
||||
form_data=self.extras
|
||||
)
|
||||
|
||||
self.columns = columns
|
||||
self.groupby = groupby or []
|
||||
|
||||
Reference in New Issue
Block a user