From 79c0f3bd6805c3fb4b1dd918b3b01c3c2559362d Mon Sep 17 00:00:00 2001 From: Jian Chang Date: Thu, 25 Jan 2024 13:01:04 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=B0=8F=E7=BA=A2=E4=B9=A6?= =?UTF-8?q?=E8=AF=84=E8=AE=BA=E9=87=8D=E5=A4=8D=E6=8F=92=E5=85=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- store/xhs/xhs_store_impl.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/store/xhs/xhs_store_impl.py b/store/xhs/xhs_store_impl.py index 40f1a61..5df67c1 100644 --- a/store/xhs/xhs_store_impl.py +++ b/store/xhs/xhs_store_impl.py @@ -107,7 +107,7 @@ class XhsDbStoreImplement(AbstractStore): """ from .xhs_store_db_types import XHSNoteComment - comment_id = comment_item.get("id") + comment_id = comment_item.get("comment_id") if not await XHSNoteComment.filter(comment_id=comment_id).first(): comment_item["add_ts"] = utils.get_current_timestamp() comment_pydantic = pydantic_model_creator(XHSNoteComment, name="CommentPydanticCreate", exclude=('id',))