Merge branch 'data_feature' of gitea.randerath.eu:johannes/transport-accessibility into data_feature

This commit is contained in:
Jan Kiljanski 2024-06-11 20:41:28 +02:00
commit f2c8d147e5
3 changed files with 2 additions and 2 deletions

View File

@ -43,6 +43,7 @@
} }
</style> </style>
</style> </style>
{% load static %}
</head> </head>
<body> <body>
<div class="sidebar"> <div class="sidebar">

View File

@ -52,6 +52,6 @@ def index(request):
timetable = get_timetable(r, trips, stop_sequences) timetable = get_timetable(r, trips, stop_sequences)
except Route.DoesNotExist: except Route.DoesNotExist:
print(f"Invalid request for Route with id {request.GET['timetable']}") print(f"Invalid request for Route with id {request.GET['timetable']}")
context = {"data": str(json.dumps({"stops": stops, "routes": routes, "timetable": timetable}))} context = {"data": json.dumps({"stops": stops, "routes": routes, "timetable": timetable})}
return render(request,"map.html", context) return render(request,"map.html", context)

View File

@ -15,7 +15,6 @@ from pathlib import Path
# Build paths inside the project like this: BASE_DIR / 'subdir'. # Build paths inside the project like this: BASE_DIR / 'subdir'.
BASE_DIR = Path(__file__).resolve().parent.parent BASE_DIR = Path(__file__).resolve().parent.parent
# Quick-start development settings - unsuitable for production # Quick-start development settings - unsuitable for production
# See https://docs.djangoproject.com/en/5.0/howto/deployment/checklist/ # See https://docs.djangoproject.com/en/5.0/howto/deployment/checklist/