now added it

This commit is contained in:
2024-12-19 15:20:02 +01:00
parent ba37903a5d
commit 4e378d290c
6 changed files with 37 additions and 2797 deletions

View File

@@ -32,9 +32,14 @@ class AddressDAO:
print("FINISHED")#
def getAddressData(self, all = True, zipcode = None):
if self.__cur:
self.__cur.callproc("getAddress", (all, zipcode,))
self.__data = self.__cur.fetchall()
return self.__data
else:
return None
try:
if self.__cur:
self.__cur.callproc("getAddress", (all, zipcode,))
self.__data = self.__cur.fetchall()
return self.__data
else:
return None
except mariadb.Error as e:
print(str(e))