diff options
author | Matt Arnold | 2025-04-10 19:24:21 -0400 |
---|---|---|
committer | Matt Arnold | 2025-04-10 19:24:21 -0400 |
commit | f34df498c517a462aad98f2ab528a6d15974e46c (patch) | |
tree | e3b2f7f342921b23f6f4eada84e55ca82e7d8d70 /app.py | |
parent | 1e470374226fd72a29daededfab6510289346316 (diff) |
The great ui commit css crimes
Diffstat (limited to 'app.py')
-rw-r--r-- | app.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/app.py b/app.py index 137a6ca..02c4693 100644 --- a/app.py +++ b/app.py @@ -4,7 +4,7 @@ from urllib.parse import urlparse as url_parse from flask import Flask, render_template, request, redirect, url_for, flash from markdown import markdown, Markdown from config import config -from models import Post, db, get_replies, Faccet +from models import Post, db, get_replies, Faccet, get_previous from models import User as NewUser from forms import PostForm, LoginForm from flask_login import ( @@ -82,8 +82,9 @@ def logout(): @login_required def post(post_id): post = Post.get(Post.id == post_id) + previous = get_previous(post_id) replies = get_replies(post_id) - return render_template("post.html", post=post, replies=replies) + return render_template("post.html", post=post, replies=replies, previous=previous) @app.route("/create", methods=["GET", "POST"]) |