From ef7ddd5ec2ea4b8e24769c5564fc299f4cb0fa0a Mon Sep 17 00:00:00 2001 From: agatha Date: Sun, 31 Mar 2024 22:55:50 -0400 Subject: [PATCH] add Thread class --- backend/forum.py | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/backend/forum.py b/backend/forum.py index dbfdce1..603f37c 100644 --- a/backend/forum.py +++ b/backend/forum.py @@ -20,6 +20,15 @@ class PostCreate(BaseModel): content: str +class Thread: + id: int + title: str + + def __init__(self, id, title): + self.id = id + self.title = title + + POSTS = []