Skip to content

Commit

Permalink
修复小红书评论重复插入
Browse files Browse the repository at this point in the history
  • Loading branch information
aa65535 authored Jan 25, 2024
1 parent eb89a6a commit 79c0f3b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion store/xhs/xhs_store_impl.py
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ async def store_comment(self, comment_item: Dict):
"""
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',))
Expand Down

0 comments on commit 79c0f3b

Please sign in to comment.