fix: SQL语句错误修复 + 版本号更新
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user