Fix: LF endings in routes.json

This commit is contained in:
LmeSzinc 2024-01-06 18:40:27 +08:00
parent 0f098c9540
commit 49e7ff4762

View File

@ -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)