Fixing JSON parsing

This commit is contained in:
Johannes Randerath
2024-06-11 21:24:44 +02:00
parent b15d5d1b3b
commit c10276ced4
2 changed files with 4 additions and 2 deletions

View File

@@ -177,7 +177,9 @@
}
function importGTFS() {
imported_data = JSON.parse('{{ data }}');
stops = JSON.parse('{{ stops|safe }}');
routes = JSON.parse('{{ routes|safe }}')
timetable = JSON.parse('{{ timetable|safe }}')
alert("Import existing GTFS clicked");
// Logic to import existing GTFS would go here
}