mirror of
https://github.com/apache/superset.git
synced 2024-09-12 08:39:45 -04:00
Remove function since_until_to_time_range (#5560)
It's taken care of earlier in the pipeline with legacy.update_time_range
This commit is contained in:
parent
9331cf79b5
commit
89b7ca0623
@ -946,15 +946,6 @@ def get_since_until(form_data):
|
|||||||
return since, until
|
return since, until
|
||||||
|
|
||||||
|
|
||||||
def since_until_to_time_range(form_data):
|
|
||||||
if 'time_range' in form_data:
|
|
||||||
return
|
|
||||||
|
|
||||||
since = form_data.get('since', '')
|
|
||||||
until = form_data.get('until', 'now')
|
|
||||||
form_data['time_range'] = ' : '.join((since, until))
|
|
||||||
|
|
||||||
|
|
||||||
def convert_legacy_filters_into_adhoc(fd):
|
def convert_legacy_filters_into_adhoc(fd):
|
||||||
mapping = {'having': 'having_filters', 'where': 'filters'}
|
mapping = {'having': 'having_filters', 'where': 'filters'}
|
||||||
|
|
||||||
|
@ -67,8 +67,6 @@ class BaseViz(object):
|
|||||||
if not datasource:
|
if not datasource:
|
||||||
raise Exception(_('Viz is missing a datasource'))
|
raise Exception(_('Viz is missing a datasource'))
|
||||||
|
|
||||||
utils.since_until_to_time_range(form_data)
|
|
||||||
|
|
||||||
self.datasource = datasource
|
self.datasource = datasource
|
||||||
self.request = request
|
self.request = request
|
||||||
self.viz_type = form_data.get('viz_type')
|
self.viz_type = form_data.get('viz_type')
|
||||||
|
Loading…
Reference in New Issue
Block a user