修复小红书评论重复插入
This commit is contained in:
parent
eb89a6ada8
commit
79c0f3bd68
@ -107,7 +107,7 @@ class XhsDbStoreImplement(AbstractStore):
|
|||||||
|
|
||||||
"""
|
"""
|
||||||
from .xhs_store_db_types import XHSNoteComment
|
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():
|
if not await XHSNoteComment.filter(comment_id=comment_id).first():
|
||||||
comment_item["add_ts"] = utils.get_current_timestamp()
|
comment_item["add_ts"] = utils.get_current_timestamp()
|
||||||
comment_pydantic = pydantic_model_creator(XHSNoteComment, name="CommentPydanticCreate", exclude=('id',))
|
comment_pydantic = pydantic_model_creator(XHSNoteComment, name="CommentPydanticCreate", exclude=('id',))
|
||||||
|
Loading…
Reference in New Issue
Block a user