Fix the file extension and websafe url issue
This commit is contained in:
parent
32ef15b386
commit
c4f052c26c
@ -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>')
|
||||
|
Loading…
Reference in New Issue
Block a user