Advertisement
Guest User

Untitled

a guest
May 18th, 2017
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.34 KB | None | 0 0
  1. def stadio_aragona():
  2. logo.logo()
  3. conn = psycopg2.connect("dbname='FANTAGOL' user='tonyfrancis' host='localhost' password='marianeri'")
  4. cur = conn.cursor()
  5. cur.execute("SELECT SUM(jackpot) FROM STADIO")
  6. rows = cur.fetchone() # qui quando il SUM è vuoto c'è None
  7. asterisco = "*" * 87
  8. if not rows :
  9. print "0"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement