#NEWLINE# def mostPopular( self , channel , limit ) : #NEWLINE# #INDENT# db = self . _getDb ( limit ) #NEWLINE# cursor = db . cursor ( ) #NEWLINE# cursor . execute ( 'SELECT key, requested_count FROM factoids\n                          WHERE requested_count > 0\n                          ORDER BY requested_count DESC LIMIT ?' , ( limit , ) ) #NEWLINE# results = cursor . fetchall ( ) #NEWLINE# return results