Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def stadio_aragona():
- logo.logo()
- conn = psycopg2.connect("dbname='FANTAGOL' user='tonyfrancis' host='localhost' password='marianeri'")
- cur = conn.cursor()
- cur.execute("SELECT SUM(jackpot) FROM STADIO")
- rows = cur.fetchone() # qui quando il SUM è vuoto c'è None
- asterisco = "*" * 87
- if not rows :
- print "0"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement