Yash goyal commited on
Update app.py
Browse files
app.py
CHANGED
|
@@ -327,9 +327,10 @@ def result():
|
|
| 327 |
report = session.get("report")
|
| 328 |
if not report:
|
| 329 |
return redirect(url_for("form"))
|
| 330 |
-
#
|
| 331 |
-
|
| 332 |
-
|
|
|
|
| 333 |
@app.route("/download-report")
|
| 334 |
def download_report():
|
| 335 |
report = session.get("report")
|
|
|
|
| 327 |
report = session.get("report")
|
| 328 |
if not report:
|
| 329 |
return redirect(url_for("form"))
|
| 330 |
+
# Change this line to render your result.html page
|
| 331 |
+
# The **report unpacks the dictionary into template variables
|
| 332 |
+
return render_template("result.html", **report)
|
| 333 |
+
|
| 334 |
@app.route("/download-report")
|
| 335 |
def download_report():
|
| 336 |
report = session.get("report")
|