s/subforum/forum

This commit is contained in:
David Hoppenbrouwers
2022-10-07 23:36:21 +02:00
parent 1eb77bc340
commit 2dcf9c5cf7
6 changed files with 17 additions and 16 deletions

View File

@@ -14,14 +14,14 @@ app.config['SECRET_KEY'] = 'totally random'
@app.route('/')
def index():
return render_template('index.html', title = NAME, subforums = db.get_subforums())
return render_template('index.html', title = NAME, forums = db.get_forums())
@app.route('/forum/<int:forum_id>/')
def subforum(forum_id):
title, description = db.get_subforum(forum_id)
def forum(forum_id):
title, description = db.get_forum(forum_id)
threads = db.get_threads(forum_id)
return render_template(
'subforum.html',
'forum.html',
title = title,
forum_id = forum_id,
description = description,