Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on Jun 30th, 2012  |  syntax: None  |  size: 0.29 KB  |  hits: 23  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. for row in rows:
  2.         valid = validate_email(row[2],verify=True)
  3.         try:
  4.                 if valid==True:
  5.                         active = '1'
  6.                         cur.execute("UPDATE leads SET active='%s' WHERE address='%s'" % (active, row[2]))
  7.                         print "UPDATE leads SET active='%s' WHERE address='%s'" % (active, row[2])
  8.         except socket.error:
  9.                 pass