Finished adding a client, still the GUI need some retouches

This commit is contained in:
2024-12-11 17:16:37 +01:00
parent 9a8be0409a
commit e2fe0c89c0
5 changed files with 27 additions and 25 deletions

View File

@@ -13,10 +13,10 @@ class BusinessDAO:
self.__all_cols = [desc[0] for desc in self.__cur.description]
return self.__cur.fetchall(), self.__all_cols
def addBusiness(self, data):
def addBusiness(self, data, contact_id):
try:
print(data)
self.__cur.callproc("addBusiness", (json.dumps(data),))
self.__cur.callproc("addBusiness", (json.dumps(data), contact_id))
self.__con.commit()
except mariadb.Error as e: