Comment out unused pages

+ Slight formatting changes
This commit is contained in:
Xevion
2022-03-28 13:23:34 -05:00
parent 87f6c53987
commit 28a9dd4a76

View File

@@ -40,12 +40,13 @@ def view_post(post_id: int):
post = Post.query.get_or_404(post_id) post = Post.query.get_or_404(post_id)
comments = post.comments comments = post.comments
comment_authors = [User.query.get_or_404(comment.author) for comment in 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') # @blueprint.route('/messages')
def messages(): # def messages():
return render_template('pages/messages.html') # return render_template('pages/messages.html')
@blueprint.route('/search') @blueprint.route('/search')
@@ -68,15 +69,14 @@ def edit_user(username: str):
return redirect(url_for('main.user', username=username)) return redirect(url_for('main.user', username=username))
@blueprint.route('/blogs') # @blueprint.route('/blogs')
def blogs(): # def blogs():
return render_template('pages/blogs.html') # return render_template('pages/blogs.html')
#
#
@blueprint.route('/groups') # @blueprint.route('/groups')
def groups(): # def groups():
return render_template('pages/groups.html') # return render_template('pages/groups.html')
@blueprint.route('/login', methods=['GET']) @blueprint.route('/login', methods=['GET'])
def login(): def login():