Fix make style
This commit is contained in:
parent
4dc45f723a
commit
e0d52b1210
@ -156,9 +156,7 @@ async def downgrade(ctx: Context, version: int, delete: bool):
|
|||||||
if version == -1:
|
if version == -1:
|
||||||
specified_version = await Migrate.get_last_version()
|
specified_version = await Migrate.get_last_version()
|
||||||
else:
|
else:
|
||||||
specified_version = await Aerich.filter(
|
specified_version = await Aerich.filter(app=app, version__startswith=f"{version}_").first()
|
||||||
app=app, version__startswith=f"{version}_"
|
|
||||||
).first()
|
|
||||||
if not specified_version:
|
if not specified_version:
|
||||||
return click.secho("No specified version found", fg=Color.yellow)
|
return click.secho("No specified version found", fg=Color.yellow)
|
||||||
if version == -1:
|
if version == -1:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user