'Get the failed downloads'

def run(self):

    failed_db_con = db.DBConnection(u'failed.db', row_type=u'dict')
    u_limit = min(int(self.limit), 100)
    if (u_limit == 0):
        sql_results = failed_db_con.select(u'SELECT    *    FROM    failed')
    else:
        sql_results = failed_db_con.select(u'SELECT    *    FROM    failed    LIMIT    ?', [u_limit])
    return _responds(RESULT_SUCCESS, sql_results)
