make ensure_ascii=False

This commit is contained in:
long2ice 2020-05-15 18:49:52 +08:00
parent cab56594d5
commit 23cbd12570
2 changed files with 5 additions and 5 deletions

View File

@ -100,7 +100,7 @@ async def upgrade(ctx: Context):
with open(file_path, "w") as f:
content["migrate"] = True
json.dump(content, f, indent=4)
json.dump(content, f, indent=4, ensure_ascii=False)
click.secho(f"Success upgrade {file}", fg=Color.green)
@ -127,7 +127,7 @@ async def downgrade(ctx: Context):
continue
with open(file_path, "w") as f:
content["migrate"] = False
json.dump(content, f, indent=4)
json.dump(content, f, indent=4, ensure_ascii=False)
return click.secho(f"Success downgrade {file}", fg=Color.green)

View File

@ -80,7 +80,7 @@ class Migrate:
"migrate": False,
}
with open(os.path.join(cls.migrate_location, filename), "w") as f:
json.dump(content, f, indent=4)
json.dump(content, f, indent=4, ensure_ascii=False)
return filename
@classmethod