From 28a9dd4a76761ed792986c8b70d5db2da999b32b Mon Sep 17 00:00:00 2001 From: Xevion Date: Mon, 28 Mar 2022 13:23:34 -0500 Subject: [PATCH] Comment out unused pages + Slight formatting changes --- routes.py | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/routes.py b/routes.py index f22e4c6..69d1b0c 100644 --- a/routes.py +++ b/routes.py @@ -40,12 +40,13 @@ def view_post(post_id: int): post = Post.query.get_or_404(post_id) comments = post.comments comment_authors = [User.query.get_or_404(comment.author) for comment in comments] - return render_template('pages/post.html', post=post, author=User.query.get_or_404(post.author), comments_and_authors=zip(comments, comment_authors)) + return render_template('pages/post.html', post=post, author=User.query.get_or_404(post.author), + comments_and_authors=zip(comments, comment_authors)) -@blueprint.route('/messages') -def messages(): - return render_template('pages/messages.html') +# @blueprint.route('/messages') +# def messages(): +# return render_template('pages/messages.html') @blueprint.route('/search') @@ -68,15 +69,14 @@ def edit_user(username: str): return redirect(url_for('main.user', username=username)) -@blueprint.route('/blogs') -def blogs(): - return render_template('pages/blogs.html') - - -@blueprint.route('/groups') -def groups(): - return render_template('pages/groups.html') - +# @blueprint.route('/blogs') +# def blogs(): +# return render_template('pages/blogs.html') +# +# +# @blueprint.route('/groups') +# def groups(): +# return render_template('pages/groups.html') @blueprint.route('/login', methods=['GET']) def login():