reuse Database classes

This commit is contained in:
2024-12-10 10:46:40 +01:00
parent 77922d104c
commit 959810c9e3
3 changed files with 14 additions and 10 deletions

View File

@@ -88,10 +88,7 @@ class ConfigLoader(QObject):
def __checkAdminUser(self):
# print(f"In {__file__} file, __checkAdminUser()")
con = DbManager().getConnection()
cur = con.cursor()
cur.callproc("checkAdmin")
result = cur.fetchall()
result = UserManager().checkAdmin()
if not result:
#if not result[0][0] == 1:
self.adminUserError.emit("Kein Admin vorhanden", False)