mirror of
https://github.com/arcan1s/ahriman.git
synced 2025-04-24 15:27:17 +00:00
fix users migration
This commit is contained in:
parent
86af13f09e
commit
5b1f5a8473
@ -32,9 +32,9 @@ def migrate_users_data(connection: Connection, configuration: Configuration) ->
|
||||
for option, value in configuration[section].items():
|
||||
if not section.startswith("auth:"):
|
||||
continue
|
||||
permission = section[5:]
|
||||
access = section[5:]
|
||||
connection.execute(
|
||||
"""insert into users (username, permission, password) values (:username, :permission, :password)""",
|
||||
{"username": option.lower(), "permission": permission, "password": value})
|
||||
"""insert into users (username, access, password) values (:username, :access, :password)""",
|
||||
{"username": option.lower(), "access": access, "password": value})
|
||||
|
||||
connection.commit()
|
||||
|
Loading…
Reference in New Issue
Block a user