From 1f6e041e49754ae41db005f98df2685031ccaff0 Mon Sep 17 00:00:00 2001 From: Matt Arnold Date: Tue, 15 Apr 2025 21:55:22 -0400 Subject: threaded view basically works now --- app.py | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'app.py') diff --git a/app.py b/app.py index d5b0c8c..2653dde 100644 --- a/app.py +++ b/app.py @@ -144,5 +144,13 @@ def faccets(): return render_template("faccet_list.html", faccet=faccet_list) +@app.route("/thread/") +@login_required +def thread(post_id): + thread = Post.get(Post.id == post_id) + pdx = get_replies(post_id) + return render_template("view_thread.html", thread=thread, pdx=pdx) + + if __name__ == "__main__": app.run(debug=True, port=5052) -- cgit 1.4.1-2-gfad0