cursor execute INSERT INTO main_reference SET source url vulnerability

1
2
cursor.execute("""INSERT INTO main_reference SET
source = %s, url = %s, vulnerability_id = (select max(id)+1 from main_vulnerability )""", (k['source'], k['url'] )