forked from spacebar/SplatNet-Backend
fix: specify utf-8 when parsing yaml --> json
This commit is contained in:
parent
d57d0a1ed8
commit
d9af7b3305
1 changed files with 2 additions and 2 deletions
|
|
@ -47,7 +47,7 @@ async def boss_rotation(request: Request):
|
|||
})
|
||||
return formatted
|
||||
|
||||
with open("boss.yaml", "r") as f:
|
||||
with open("boss.yaml", "r", encoding='utf-8') as f:
|
||||
yaml_data = yaml.safe_load(f)
|
||||
|
||||
start_time = yaml_data.get("DateTime")
|
||||
|
|
@ -81,7 +81,7 @@ async def boss_rotation(request: Request):
|
|||
}
|
||||
|
||||
try:
|
||||
with open("fes_boss.yaml", "r") as f:
|
||||
with open("fes_boss.yaml", "r", encoding='utf-8') as f:
|
||||
fes_yaml = yaml.safe_load(f)
|
||||
|
||||
if fes_yaml:
|
||||
|
|
|
|||
Loading…
Reference in a new issue