try import and export
This commit is contained in:
@@ -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()
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user