def hasFailed(release, size, provider='%'):
 release = prepareFailedName(release)
 failed_db_con = db.DBConnection('failed.db')
 sql_results = failed_db_con.select('SELECT release FROM failed WHERE release=? AND size=? AND provider LIKE ? LIMIT 1', [release, size, provider])
 return (len(sql_results) > 0)

def hasFailed ( release , size , provider = '%' ) : release = prepareFailedName ( release ) failed_db_con = db . DBConnection ( 'failed.db' ) sql_results = failed_db_con . select ( 'SELECT release FROM failed WHERE release=? AND size=? AND provider LIKE ? LIMIT 1' , [ release , size , provider ] ) return ( len ( sql_results ) > 0 )
returns true if a release has previously failed .