prthm11 commited on
Commit
92c91c4
·
verified ·
1 Parent(s): 84c2074

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -0
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