fix: SQL语句错误修复 + 版本号更新

This commit is contained in:
2026-04-27 12:35:24 +08:00
parent 3411de1612
commit 4442d5056a
2 changed files with 2 additions and 2 deletions

View File

@@ -185,7 +185,7 @@ def init_db():
# 初始化管理员账户
cursor.execute('SELECT COUNT(*) FROM admin_users')
if cursor.fetchone()[0] == 0:
cursor.execute('INSERT INTO admin_users (username, password_hash) VALUES (?, ?',
cursor.execute('INSERT INTO admin_users (username, password_hash) VALUES (?, ?)',
(ADMIN_USERNAME, ADMIN_PASSWORD_HASH))
conn.commit()