From b2e854a119fb11b90b3faf2ce3c10ed88b3261f1 Mon Sep 17 00:00:00 2001 From: hyonzin Date: Wed, 19 Mar 2025 00:32:10 +0900 Subject: [PATCH 1/2] =?UTF-8?q?=EA=B8=80=EC=93=B0=EA=B8=B0=20API(/bbs/writ?= =?UTF-8?q?e=5Fupdate/{bo=5Ftable})=EC=9D=98=20parent=5Fid=20=ED=8C=8C?= =?UTF-8?q?=EB=9D=BC=EB=AF=B8=ED=84=B0=20=EA=B8=B0=EB=B3=B8=EA=B0=92?= =?UTF-8?q?=EC=9D=84=200=EC=9C=BC=EB=A1=9C=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- bbs/board.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bbs/board.py b/bbs/board.py index 6c622c67c..252771682 100644 --- a/bbs/board.py +++ b/bbs/board.py @@ -298,7 +298,7 @@ async def create_post( form_data: Annotated[WriteForm, Depends()], service: Annotated[CreatePostService, Depends(CreatePostService.async_init)], file_service: Annotated[BoardFileService, Depends()], - parent_id: int = Form(None), + parent_id: int = Form(0), notice: bool = Form(False), secret: str = Form(""), html: str = Form(""), From aa06e3dc787dceb2d6e9b01ceab5356598275a34 Mon Sep 17 00:00:00 2001 From: hyonzin Date: Wed, 19 Mar 2025 00:38:38 +0900 Subject: [PATCH 2/2] =?UTF-8?q?=EB=8C=93=EA=B8=80=EC=93=B0=EA=B8=B0=20API(?= =?UTF-8?q?/bbs/write=5Fcomment=5Fupdate/{bo=5Ftable})=EC=9D=98=20comment?= =?UTF-8?q?=5Fid=20=ED=8C=8C=EB=9D=BC=EB=AF=B8=ED=84=B0=20=EA=B8=B0?= =?UTF-8?q?=EB=B3=B8=EA=B0=92=EC=9D=84=200=EC=9C=BC=EB=A1=9C=20=EC=88=98?= =?UTF-8?q?=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- core/formclass.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/formclass.py b/core/formclass.py index 185d7c9b4..e363c811b 100644 --- a/core/formclass.py +++ b/core/formclass.py @@ -456,7 +456,7 @@ class WriteCommentForm: wr_name: str = Form(None) wr_password: str = Form(None) wr_secret: str = Form(None) - comment_id: int = Form(None) + comment_id: int = Form(0) @dataclass