From 21001c0eda0e8b8e4764dd45b3282a81969ee712 Mon Sep 17 00:00:00 2001 From: Patrick Schneeweis Date: Fri, 24 Jul 2020 09:24:43 -0400 Subject: [PATCH] Make history command into async function The close_db decorator requires async functions --- aerich/cli.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aerich/cli.py b/aerich/cli.py index 3dfa6ac..b637f4c 100644 --- a/aerich/cli.py +++ b/aerich/cli.py @@ -161,7 +161,7 @@ async def heads(ctx: Context): @cli.command(help="List all migrate items.") @click.pass_context -def history(ctx): +async def history(ctx): versions = Migrate.get_all_version_files() for version in versions: click.secho(version, fg=Color.green)