Make it work in production (this breaks testing but oh well)

This commit is contained in:
Juhani Krekelä 2018-04-07 20:29:09 +03:00
parent 16dcb4562c
commit 027fb8385d
1 changed files with 2 additions and 1 deletions

View File

@ -8,7 +8,8 @@ def generate_nav(*, soup):
nav_tag = soup.new_tag('nav')
for board in ['a', 'b', 'his', 'g']:
url = '/' + urllib.parse.quote(board, safe = '') + '/'
# FIXME: Read this from a config file
url = 'board/' + urllib.parse.quote(board, safe = '') + '/'
a_tag = soup.new_tag('a', href = url)
a_tag.string = '/' + board + '/'
nav_tag.append(a_tag)