added hotpatch for tut08 because of time crunch

This commit is contained in:
2025-06-23 21:02:19 +02:00
parent 8330b73cd1
commit aa34255273

View File

@@ -204,6 +204,9 @@ def serve_deck(deck, path='index.html'):
if slidev_all_pattern.match(request.path): if slidev_all_pattern.match(request.path):
return send_from_directory(deck_path, 'index.html') 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) requested_file = os.path.join(deck_path, path)
if os.path.isfile(requested_file): if os.path.isfile(requested_file):
return send_from_directory(deck_path, path) return send_from_directory(deck_path, path)