try import and export

This commit is contained in:
2024-12-10 10:06:23 +01:00
parent f9dfcf95bf
commit 28c32dba8a
3 changed files with 15 additions and 15 deletions

View File

@@ -18,15 +18,12 @@ class UserDAO:
print(e.errno)
user_created = False
finally:
# self.__closeConnection()
return user_created
def getUser(self, username):
self.__cur.callproc("getUser", (username,))
return self.__cur.fetchone()
def __closeConnection(self):
self.__cur.close()
self.__con.close()