mirror of
https://github.com/Andre0512/hon.git
synced 2025-05-12 22:25:36 -04:00
Don't escape unicode in json files
This commit is contained in:
parent
e35a6ce751
commit
e56f2c99c0
20 changed files with 6625 additions and 6643 deletions
|
@ -262,7 +262,7 @@ def load_json(path):
|
|||
|
||||
def save_json(path, keys):
|
||||
with open(path, "w") as json_file:
|
||||
json_file.write(json.dumps(keys, indent=4))
|
||||
json_file.write(json.dumps(keys, indent=4, ensure_ascii=False))
|
||||
|
||||
|
||||
def load_key(full_key, json_data, fallback=None):
|
||||
|
@ -279,7 +279,7 @@ def load_key(full_key, json_data, fallback=None):
|
|||
|
||||
|
||||
def load_keys(full_key, json_data):
|
||||
blacklist = ["description", "_recipe_", "_guided_"]
|
||||
blacklist = ["description", "desctiption", "_recipe_", "_guided_"]
|
||||
first, last = full_key.split(".")
|
||||
data = json_data.get(first, {}).get(last, {})
|
||||
return {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue