From c0a932d30c4bb14d8d2894782465a5a7291f92e2 Mon Sep 17 00:00:00 2001 From: William Ryan Date: Tue, 20 Dec 2022 18:51:33 -0500 Subject: [PATCH] Update goathacks/__init__.py Co-authored-by: Cara Salter --- goathacks/__init__.py | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/goathacks/__init__.py b/goathacks/__init__.py index d86bd72..17685c2 100644 --- a/goathacks/__init__.py +++ b/goathacks/__init__.py @@ -54,14 +54,10 @@ def create_app(): def sponsor(path): return send_from_directory('templates/home/sponsor', path) - #Code of condcut - @app.route("/conduct") - def conductindex(): - return render_template('home/conduct/index.html') - - @app.route('/conduct/') + #Code of conduct + @app.route('/conduct/conduct.pdf') def conduct(path): - return send_from_directory('templates/home/conduct', path) + return url_for('static', filename='conduct.pdf') # Homepage @app.route("/")