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

7
.dockerignore Normal file
View File

@@ -0,0 +1,7 @@
.venv
__pycache__/
*.pyc
nohup.out
.git
log/

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):

6
debug.py Normal file
View File

@@ -0,0 +1,6 @@
from app import create_app, socketio
app = create_app()
if __name__ == '__main__':
socketio.run(app, host="127.0.0.1", port=5000, debug=True)

2
run.py
View File

@@ -3,4 +3,4 @@ from app import create_app, socketio
app = create_app()
if __name__ == '__main__':
socketio.run(app, host="127.0.0.1", port=5000, debug=True)
socketio.run(app, host="127.0.0.1", port=5000)