Commit 574516ab authored by Evenson Jeunesse's avatar Evenson Jeunesse

Update prog.py

parent 9db9e92a
......@@ -41,6 +41,20 @@ conn.close()
"""
def Execute(sql) :
try:
cur.execute(sql)
except pg.Error as E:
print(E.pgerror)
conn.rollback()
return False
conn.commit()
return True
///////////////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////////////
BASIC FUCNTIONS SECTION
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment