Fix make style

This commit is contained in:
Lương Quang Mạnh 2020-12-21 15:36:29 +07:00
parent 4dc45f723a
commit e0d52b1210

View File

@ -156,9 +156,7 @@ async def downgrade(ctx: Context, version: int, delete: bool):
if version == -1:
specified_version = await Migrate.get_last_version()
else:
specified_version = await Aerich.filter(
app=app, version__startswith=f"{version}_"
).first()
specified_version = await Aerich.filter(app=app, version__startswith=f"{version}_").first()
if not specified_version:
return click.secho("No specified version found", fg=Color.yellow)
if version == -1: