FIX Admin seed value

This commit is contained in:
Esa Kataja
2025-05-05 17:53:11 +03:00
parent c3494e6169
commit 73935be1ba
+2 -1
View File
@@ -80,12 +80,13 @@ def seed_db() -> None:
hashed_admin_password = hash_password(os.getenv("ADMIN_PASSWORD"))
with get_connection() as conn:
conn.execute(
'INSERT INTO "User" (username, hashed_password, team_id, is_active) VALUES (?, ?, ?, ?)',
'INSERT INTO "User" (username, hashed_password, team_id, is_active, is_admin) VALUES (?, ?, ?, ?, ?)',
(
admin_username,
hashed_admin_password,
1,
True,
True,
),
)