Add YAML output on debug page.
This commit is contained in:
parent
7e2b79c672
commit
91a74fd887
2 changed files with 15 additions and 8 deletions
|
|
@ -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,
|
||||
)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue