fix: initialize engine and session in util/adduser.py

Signed-off-by: Kevin Morris <kevr@0cost.org>
This commit is contained in:
Kevin Morris 2021-11-14 16:02:00 -08:00
parent 9424341b55
commit 7f6d9966e5
No known key found for this signature in database
GPG key ID: F7E46DED420788F3

View file

@ -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():