From c4f052c26cf5c6630f859662ff0100f3323f9ca2 Mon Sep 17 00:00:00 2001 From: Alexander Hosking Date: Mon, 31 Dec 2018 02:05:32 -0500 Subject: [PATCH] Fix the file extension and websafe url issue --- run_site.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/run_site.py b/run_site.py index ebea78f..220d050 100644 --- a/run_site.py +++ b/run_site.py @@ -100,7 +100,7 @@ def show_project_file(category, project_name, filename): def category_photo_url_generator(): categories = os.getcwd() + '/images/categories/' for category in os.listdir(categories): - category = category.replace(" ", "%20") + category = category yield ('show_category_banner', {'filename': category}) @app.route('/category/')