Add YAML output on debug page.

This commit is contained in:
Edward Betts 2025-11-14 16:16:54 +00:00
parent 7e2b79c672
commit 91a74fd887
2 changed files with 15 additions and 8 deletions

View file

@ -760,11 +760,13 @@ def trip_debug_page(start: str) -> str:
# Convert to JSON for pretty printing
trip_json = json.dumps(trip_dict, indent=2, default=str)
trip_yaml = yaml.safe_dump(json.loads(trip_json), sort_keys=False)
return flask.render_template(
"trip_debug.html",
trip=trip,
trip_json=trip_json,
trip_yaml=trip_yaml,
start=start,
)