mirror of
https://github.com/LmeSzinc/StarRailCopilot.git
synced 2024-11-22 00:35:34 +00:00
Fix: LF endings in routes.json
This commit is contained in:
parent
0f098c9540
commit
49e7ff4762
@ -95,7 +95,7 @@ class RouteExtract:
|
|||||||
|
|
||||||
def model_to_json(model, file):
|
def model_to_json(model, file):
|
||||||
content = model.model_dump_json(indent=2)
|
content = model.model_dump_json(indent=2)
|
||||||
with open(file, 'w', encoding='utf-8') as f:
|
with open(file, 'w', encoding='utf-8', newline='') as f:
|
||||||
f.write(content)
|
f.write(content)
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user