Commit 5724e72c authored by Ismail Moumni's avatar Ismail Moumni
Browse files

editing db

parent d5776159
Pipeline #1014 passed with stage
in 13 seconds
......@@ -130,6 +130,7 @@ def db_insert(query: dict):
print("Record inserteds in DB :", query.values)
database.commit()
mycursor.close()
database.close()
except mysql.connector.Error as err:
print("MYSQL Error :{}".format(err))
......@@ -147,6 +148,7 @@ def db_job_check(query: dict):
db.commit()
ret = mycursor.rowcount
mycursor.close()
db.close()
return ret
except mysql.connector.Error as err:
print("MYSQL Error :{}".format(err))
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