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