mirror of
https://gitlab.archlinux.org/archlinux/aurweb.git
synced 2025-02-03 10:43:03 +01:00
fix(fastapi): close connection used for initdb
Signed-off-by: Kevin Morris <kevr@0cost.org>
This commit is contained in:
parent
40b21203ed
commit
0abdf8d468
1 changed files with 3 additions and 1 deletions
|
@ -46,7 +46,9 @@ def run(args):
|
|||
|
||||
engine = aurweb.db.get_engine(echo=(args.verbose >= 1))
|
||||
aurweb.schema.metadata.create_all(engine)
|
||||
feed_initial_data(engine.connect())
|
||||
conn = engine.connect()
|
||||
feed_initial_data(conn)
|
||||
conn.close()
|
||||
|
||||
if args.use_alembic:
|
||||
alembic.command.stamp(alembic_config, 'head')
|
||||
|
|
Loading…
Add table
Reference in a new issue