mirror of
https://github.com/Xevion/runnerspace.git
synced 2025-12-16 10:13:10 -06:00
Comment out unused pages
+ Slight formatting changes
This commit is contained in:
26
routes.py
26
routes.py
@@ -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():
|
||||||
|
|||||||
Reference in New Issue
Block a user