added another exception

This commit is contained in:
2025-09-14 15:57:03 +02:00
parent e54c49caa3
commit eaf7c03d0e
4 changed files with 16 additions and 3 deletions

View File

@@ -204,8 +204,8 @@ def serve_deck(deck, path='index.html'):
if slidev_all_pattern.match(request.path):
return send_from_directory(deck_path, 'index.html')
if deck == "tut-08" and path == 'index.html':
return send_from_directory(deck_path, 'slides08.pdf')
if deck in ["tut-08","tut-11"] and path == 'index.html':
return send_from_directory(deck_path, 'slides.pdf')
requested_file = os.path.join(deck_path, path)
if os.path.isfile(requested_file):