(self, row)
return _convert_field_value(search_id)
Find and convert the search id in an Excel row
Find and convert the search id in an Excel row
Find and convert the search id in an Excel row
def _parse_search_id(self, row):
        """ Find and convert the search id in an Excel row """

        # Find index of user specified search column
        search_column = self.config.search_column
        search_id = row[search_column] or ''

        try:
            # if the spreadsheet gives a number, strip any decimals off
            # float(x) is more lenient in conversion from string so both
            # are used
            search_id = int(float(search_id))
        except (ValueError, TypeError, OverflowError):
            # if it's not a number that's okay too
            pass

        return _convert_field_value(search_id)
def _parse_search_id ( self , row ) : # Find index of user specified search column search_column = self . config . search_column search_id = row [ search_column ] or '' try : # if the spreadsheet gives a number, strip any decimals off # float(x) is more lenient in conversion from string so both # are used search_id = int ( float ( search_id ) ) except ( ValueError , TypeError , OverflowError ) : # if it's not a number that's okay too pass return _convert_field_value ( search_id )