src/funkyquizbot/data.py
def _getlines(self, sheetId: str, name: str, factory: Type[Row]):
        "helper method to get data from gsheets"
        sheet = self.g.open_by_key(sheetId).sheet1 # get first sheet
        logger.debug('about to get new %s', name)
        timestamp = datetime.now().isoformat()
        return [factory(i, name, timestamp, row) for i, row in enumerate(sheet.get_all_values()) if not Row.must_skip(row) ]
helper method to get data from gsheets
helper method to get data from gsheets
helper method to get data from gsheets
def _getlines(self, sheetId: str, name: str, factory: Type[Row]):
        sheet = self.g.open_by_key(sheetId).sheet1 
        logger.debug('about to get new %s', name)
        timestamp = datetime.now().isoformat()
        return [factory(i, name, timestamp, row) for i, row in enumerate(sheet.get_all_values()) if not Row.must_skip(row) ]
def _getlines ( self , sheetId : str , name : str , factory : Type [ Row ] ) : sheet = self . g . open_by_key ( sheetId ) . sheet1 logger . debug ( 'about to get new %s' , name ) timestamp = datetime . now ( ) . isoformat ( ) return [ factory ( i , name , timestamp , row ) for i , row in enumerate ( sheet . get_all_values ( ) ) if not Row . must_skip ( row ) ]
helper method to get data from gsheets
helper method to get data from gsheets
"helper method to get data from gsheets" # get first sheet
self
sheetId
str
name
str
factory
Type[Row]