def _date_query(self, search_table, column): sfilter = object() executer = StoqlibQueryExecuter(self.store) executer.set_filter_columns(sfilter, [column]) executer.set_table(search_table) state = DateIntervalQueryState(filter=sfilter, start=self.start, end=self.end) return executer.search([state])
def _date_filter_query(self, search_table, column): executer = StoqlibQueryExecuter(self.store) executer.set_filter_columns(self.date_filter, [column]) executer.set_table(search_table) return executer.search([self.date_filter.get_state()])