def get_data_for_national_aggregatation(self, data_source_name): national_config = { 'domain': self.config['domain'], 'previous_month': self.config['previous_month'], } return NationalAggregationDataSource( national_config, self.data_sources(config=national_config)[data_source_name], show_test=self.show_test, beta=self.beta).get_data()
def get_data_for_national_aggregatation(domain, previous_month, data_source_name, loc_level, show_test, beta): national_config = { 'domain': domain, 'previous_month': parse(previous_month), } fact_sheet_datasource = FACT_SHEET_DATASOURCES_NAMES[data_source_name]( config=national_config, loc_level=loc_level, show_test=show_test, beta=beta) return NationalAggregationDataSource(national_config, fact_sheet_datasource, show_test=show_test, beta=beta).get_data()