mirror of
https://github.com/EstrellaXD/Auto_Bangumi.git
synced 2026-12-01 08:46:31 +08:00
chore: enhance saving config file with non-ASCII
This commit is contained in:
@@ -42,7 +42,7 @@ class Settings(Config):
|
||||
if not config_dict:
|
||||
config_dict = self.dict()
|
||||
with open(CONFIG_PATH, "w", encoding="utf-8") as f:
|
||||
json.dump(config_dict, f, indent=4)
|
||||
json.dump(config_dict, f, indent=4, ensure_ascii=False)
|
||||
|
||||
def init(self):
|
||||
load_dotenv(".env")
|
||||
|
||||
Reference in New Issue
Block a user