#NEWLINE# def find_highest_ratio( self , report_id , limit ) : #NEWLINE# #INDENT# cursor = self . _database . cursor ( MySQLdb . cursors . DictCursor ) #NEWLINE# cursor . execute ( 'SELECT * FROM `ratios` WHERE report_id = %s ORDER BY ratio DESC LIMIT %s' , ( report_id , limit ) ) #NEWLINE# return dm . Collection ( Ratio , cursor )