(self)
return api_data
Returns the data we want from the API.
Returns the data we want from the API.
Returns the data we want from the API .
def get_raw_data(self):
        """
        Returns the data we want from the API.
        """
        api_data = []
        for state in states.STATES:
            logger.debug(f"Downloading {self.slug} {self.config.PROCESSED_TABLE_NAME} data from the raw {self.config.RAW_TABLE_NAME} table in {state} for the {self.year} {self.config.source} count")
            # Get the raw data
            api_filter = self.get_api_filter(state)
            state_data = self.api.get(self.api_fields, api_filter)
            api_data.extend(state_data)
        return api_data
def get_raw_data ( self ) : api_data = [ ] for state in states . STATES : logger . debug ( f"Downloading {self.slug} {self.config.PROCESSED_TABLE_NAME} data from the raw {self.config.RAW_TABLE_NAME} table in {state} for the {self.year} {self.config.source} count" ) # Get the raw data api_filter = self . get_api_filter ( state ) state_data = self . api . get ( self . api_fields , api_filter ) api_data . extend ( state_data ) return api_data