added another exception
This commit is contained in:
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user