From aa34255273f8c756bc82d1d07e3f9aa7468337e3 Mon Sep 17 00:00:00 2001 From: cato447 Date: Mon, 23 Jun 2025 21:02:19 +0200 Subject: [PATCH] added hotpatch for tut08 because of time crunch --- app/routes.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/routes.py b/app/routes.py index 1ce7dff..b978d22 100644 --- a/app/routes.py +++ b/app/routes.py @@ -203,6 +203,9 @@ def serve_deck(deck, path='index.html'): if slidev_all_pattern.match(request.path): return send_from_directory(deck_path, 'index.html') + + if deck.name == "tut-08" and path == 'index.html': + return send_from_directory(deck_path, 'slides08.pdf') requested_file = os.path.join(deck_path, path) if os.path.isfile(requested_file):