fixed db problem
This commit is contained in:
@@ -147,6 +147,8 @@ def _create_default_user_if_missing(username, password, role):
|
||||
|
||||
|
||||
def _ensure_default_users():
|
||||
if count_users() > 0:
|
||||
print("[server] Users already exist, skipping default account seeding.")
|
||||
if count_users() == 0:
|
||||
print("[server] No users found. Seeding default accounts...")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user