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:
Maxime Beauchemin 2018-08-03 15:34:03 -07:00 committed by GitHub
parent 9331cf79b5
commit 89b7ca0623
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 0 additions and 11 deletions

View File

@ -946,15 +946,6 @@ def get_since_until(form_data):
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):
mapping = {'having': 'having_filters', 'where': 'filters'}

View File

@ -67,8 +67,6 @@ class BaseViz(object):
if not datasource:
raise Exception(_('Viz is missing a datasource'))
utils.since_until_to_time_range(form_data)
self.datasource = datasource
self.request = request
self.viz_type = form_data.get('viz_type')