From cf1f5099861319ffde5ab31ec06fba06dfe7f59f Mon Sep 17 00:00:00 2001 From: willhockey20 Date: Tue, 20 Dec 2022 20:03:32 -0500 Subject: [PATCH] still going --- goathacks/__init__.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/goathacks/__init__.py b/goathacks/__init__.py index 6530201..20291c2 100644 --- a/goathacks/__init__.py +++ b/goathacks/__init__.py @@ -55,12 +55,12 @@ def create_app(): return send_from_directory('templates/home/sponsor', path) #Code of conduct - @app.route('/conduct') - def conductindex(): - return render_template('home/conduct/index.html') - @app.route('/conduct/') - def conduct(path): - return send_from_directory('templates/home/conduct', path) + @app.route('/conduct/conduct.pdf') + def conduct(): + return url_for('conduct', filename='templates/home/conduct/conduct.pdf') + # @app.route('/conduct/') + #def conduct(path): + # return send_from_directory('templates/home/conduct', path) # Homepage @app.route("/")