Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def insert(play,curr,antal,currkurs,goalkurs,buykurs,currprofusd,goalprofusd,currprofbtc,goalprofbtc,tradedate,currentpair):
- conn=psycopg2.connect(host="localhost",database="testdb01", user="test", password="M1ch31337isMYhero")
- cur=conn.cursor()
- cur.execute("INSERT INTO plays VALUES (%s,%s,%s,%s,%s,%s,%s,%s,%s,%s,%s,%s)",(play,curr,antal,currkurs,goalkurs,buykurs,currprofusd,goalprofusd,currprofbtc,goalprofbtc,tradedate,currentpair) )
- conn.commit()
- conn.close()
- view()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement