stats/general_requester.py
def generate_rows(self, params):
        """
        Build GET REST request and fill the table.
        """

        # json response
        response = requests.get(url=self.url, headers=headers, params=params).json()

        result_sets = response['resultSets'][0]
        rowset = result_sets['rowSet']

        column_names = column_names_from_table(self.settings.db, self.table._meta.table_name)

        column_mapping = get_rowset_mapping(result_sets, column_names)

        for row in rowset:
            new_row = {column_name: row[row_index] for column_name, row_index in column_mapping.items()}
            self.rows.append(new_row)

        Build GET REST request and fill the table.
        
Build GET REST request and fill the table.
Build GET REST request and fill the table .
def generate_rows(self, params):
        response = requests.get(url=self.url, headers=headers, params=params).json()
        result_sets = response['resultSets'][0]
        rowset = result_sets['rowSet']
        column_names = column_names_from_table(self.settings.db, self.table._meta.table_name)
        column_mapping = get_rowset_mapping(result_sets, column_names)
        for row in rowset:
            new_row = {column_name: row[row_index] for column_name, row_index in column_mapping.items()}
            self.rows.append(new_row)
def generate_rows ( self , params ) : response = requests . get ( url = self . url , headers = headers , params = params ) . json ( ) result_sets = response [ 'resultSets' ] [ 0 ] rowset = result_sets [ 'rowSet' ] column_names = column_names_from_table ( self . settings . db , self . table . _meta . table_name ) column_mapping = get_rowset_mapping ( result_sets , column_names ) for row in rowset : new_row = { column_name : row [ row_index ] for column_name , row_index in column_mapping . items ( ) } self . rows . append ( new_row )
Build GET REST request and fill the table.
Build GET REST request and fill the table .
"""
        Build GET REST request and fill the table.
        """ # json response
self
params