mirror of
https://gitlab.archlinux.org/archlinux/aurweb.git
synced 2025-02-03 10:43:03 +01:00
fix: initialize engine and session in util/adduser.py
Signed-off-by: Kevin Morris <kevr@0cost.org>
This commit is contained in:
parent
9424341b55
commit
7f6d9966e5
1 changed files with 1 additions and 0 deletions
|
@ -33,6 +33,7 @@ def parse_args():
|
|||
def main():
|
||||
args = parse_args()
|
||||
|
||||
db.get_engine()
|
||||
type = db.query(AccountType,
|
||||
AccountType.AccountType == args.type).first()
|
||||
with db.begin():
|
||||
|
|
Loading…
Add table
Reference in a new issue