summaryrefslogtreecommitdiff
path: root/app.py
diff options
context:
space:
mode:
authorMatt Arnold2025-04-15 22:38:45 -0400
committerMatt Arnold2025-04-15 22:38:45 -0400
commit6e1f614f0cf67d997c0a1b7e4e3866294c05f1e0 (patch)
tree0f4cd6962d24773e9c487cac3fdbf1a2e3e36b16 /app.py
parent1f6e041e49754ae41db005f98df2685031ccaff0 (diff)
We're at Minimum viable product now
Diffstat (limited to 'app.py')
-rw-r--r--app.py12
1 files changed, 10 insertions, 2 deletions
diff --git a/app.py b/app.py
index 2653dde..5256939 100644
--- a/app.py
+++ b/app.py
@@ -4,7 +4,15 @@ 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, get_previous, get_attribed_posts
+from models import (
+ Post,
+ db,
+ get_replies,
+ Faccet,
+ get_previous,
+ get_attribed_posts,
+ get_tview,
+)
from models import User as NewUser
from forms import PostForm, LoginForm
from flask_login import (
@@ -148,7 +156,7 @@ def faccets():
@login_required
def thread(post_id):
thread = Post.get(Post.id == post_id)
- pdx = get_replies(post_id)
+ pdx = get_tview(post_id)
return render_template("view_thread.html", thread=thread, pdx=pdx)