diff --git a/superset/utils.py b/superset/utils.py index c0c0740bd9..d40e657dc7 100644 --- a/superset/utils.py +++ b/superset/utils.py @@ -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'} diff --git a/superset/viz.py b/superset/viz.py index 7ba8645bbc..c9eea34ca2 100644 --- a/superset/viz.py +++ b/superset/viz.py @@ -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')