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

@@ -10,9 +10,12 @@ class BTypeDAO:
self.__cur = self.__con.cursor()
def getBType(self):
if self.__cur:
self.__cur.callproc("getBtype", (None, None, ))
data = self.__cur.fetchall()
return(data)
else:
return None
try:
if self.__cur:
self.__cur.callproc("getBtype", (None, None, ))
data = self.__cur.fetchall()
return(data)
else:
return None
except mariadb.Error as e:
print(str(e))