nochmal
This commit is contained in:
@@ -16,6 +16,7 @@ class BusinessDAO(QObject):
|
||||
if self.__con:
|
||||
self.__cur = self.__con.cursor()
|
||||
|
||||
|
||||
def getBusiness(self, enc_key, criterion = "Alle"):
|
||||
if self.__cur:
|
||||
self.__cur.callproc("getCustomerView", (enc_key, criterion,))
|
||||
@@ -24,10 +25,13 @@ class BusinessDAO(QObject):
|
||||
else:
|
||||
return None, None
|
||||
|
||||
def addBusiness(self, data, contact_id):
|
||||
|
||||
|
||||
def addBusiness(self, key, data, contact_id):
|
||||
try:
|
||||
|
||||
if self.__cur:
|
||||
self.__cur.callproc("addBusiness", (json.dumps(data), contact_id))
|
||||
self.__cur.callproc("addBusiness", (key, json.dumps(data), contact_id))
|
||||
self.__con.commit()
|
||||
self.newBusinessAdded.emit()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user