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

@@ -26,12 +26,14 @@ class UserDAO:
return user_created
def getUser(self, username):
if self.__cur:
self.__cur.callproc("getUser", (username,))
return self.__cur.fetchone()
else:
return None
try:
if self.__cur:
self.__cur.callproc("getUser", (username,))
return self.__cur.fetchone()
else:
return None
except mariadb.Error as e:
print(str(e))