Detected 1 occurrence(s) of ‘\s*pass[word]+\s*[:=]\s*["'][a-z0-9\-_\!\$]+["']‘: import MySQLdb import time # Connect db = MySQLdb.connect(host="MySQL.example.com", user="example", passwd="example", db="helpdesk_db", port=4040) cursor = db.cursor() IDarray = ([0,0,0]) IDarray_prev = ([0,0,0]) cursor.execute("SELECT id FROM Tickets ORDER BY id DESC limit 3;") numrows = int(cursor.rowcount) for x in range(0,numrows): row = cursor.fetchone() fo Source: http://pastebin.com/raw.php?i=AMmHbygT
↧