def clear_past_results(self, start, end):
        for table in ['hits_mv', 'main_crawlagregates']:
            st = time.time()
            self.log.info('Deleting rows from {0} where start_time between {1}'
                ' and {2}.'.format(table, start, end))
            q = "DELETE FROM {0} where start_time BETWEEN '{1}' AND '{2}';"
            execute_sql(q.format(table, start, end), commit=True)
            self.log.info('{0}s elapsed.'.format(time.time() - st))
Get valid metric options from the ocw.metrics module.
dataset/ETHPy150Open ipeirotis/Mturk-Tracker/app/mturk/updaters/management/commands/recalculate_aggregates.py/Command.clear_past_results--crossover with--dataset/ETHPy150Open apache/climate/ocw-ui/backend/processing.py/_get_valid_metric_options