mirror of
https://github.com/Redume/Kekkai.git
synced 2025-03-12 19:44:39 +03:00
fix(chart): fixed an error with getting a config item
This commit is contained in:
parent
f4475ae466
commit
f307644a8c
1 changed files with 3 additions and 1 deletions
|
@ -15,4 +15,6 @@ def load_config(file_path: str) -> dict:
|
||||||
"""
|
"""
|
||||||
with open(file_path, 'r', encoding='utf-8') as file:
|
with open(file_path, 'r', encoding='utf-8') as file:
|
||||||
hjson_data = hjson.load(file)
|
hjson_data = hjson.load(file)
|
||||||
return json.dumps(hjson_data, indent=4)
|
return json.loads(
|
||||||
|
json.dumps(hjson_data, indent=4)
|
||||||
|
)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue