Fix the file extension and websafe url issue

This commit is contained in:
Alexander Hosking 2018-12-31 02:05:32 -05:00
parent 32ef15b386
commit c4f052c26c

View File

@ -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/<path:filename>')