mirror of
https://github.com/LmeSzinc/StarRailCopilot.git
synced 2024-11-21 16:28:17 +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):
|
||||
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)
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user