fix(query-object): extra time-range-endpoints (#13331)

Co-authored-by: John Bodley <john.bodley@airbnb.com>
This commit is contained in:
John Bodley
2021-03-03 13:22:07 +13:00
committed by GitHub
parent f2616294e6
commit 694ae6f90e
3 changed files with 11 additions and 11 deletions

View File

@@ -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 []