Update app.py
Browse files
app.py
CHANGED
|
@@ -2297,6 +2297,7 @@ def download_sb3(project_id):
|
|
| 2297 |
|
| 2298 |
@app.route("/download_pdf/<project_id>", methods=["GET"])
|
| 2299 |
def download_pdf(project_id):
|
|
|
|
| 2300 |
if not pdf_doc.exists():
|
| 2301 |
return jsonify({"error": "Scratch project file not found"}), 404
|
| 2302 |
|
|
|
|
| 2297 |
|
| 2298 |
@app.route("/download_pdf/<project_id>", methods=["GET"])
|
| 2299 |
def download_pdf(project_id):
|
| 2300 |
+
pdf_path = GEN_PROJECT_DIR / f"{project_id}.pdf"
|
| 2301 |
if not pdf_doc.exists():
|
| 2302 |
return jsonify({"error": "Scratch project file not found"}), 404
|
| 2303 |
|