This commit is contained in:
m
2026-03-14 12:51:23 +01:00
parent 330c355f7c
commit 0b598060b6

4
app.py
View File

@@ -116,9 +116,9 @@ def post_detail(post_id):
return "Post not found", 404 return "Post not found", 404
#get comments #get comments
comments = get_comments_for_post(post_id) comments = get_comments_for_post(post_id)
if post.id == 10: if post["id"] == 10:
post.template = "components/timeline_post.html" post["template"] = "components/timeline_post.html"
# 2. Pass the post dictionary (with the raw HTML content) directly to the template # 2. Pass the post dictionary (with the raw HTML content) directly to the template