From 488acd04df64aaddce45fea7e6dfa0e62930291a Mon Sep 17 00:00:00 2001 From: Relakkes Date: Tue, 9 Apr 2024 23:10:51 +0800 Subject: [PATCH] fix: #222 --- store/douyin/douyin_store_impl.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/store/douyin/douyin_store_impl.py b/store/douyin/douyin_store_impl.py index 1977b44..da26c0a 100644 --- a/store/douyin/douyin_store_impl.py +++ b/store/douyin/douyin_store_impl.py @@ -89,7 +89,7 @@ class DouyinDbStoreImplement(AbstractStore): aweme_detail: Dict = await query_content_by_content_id(content_id=aweme_id) if not aweme_detail: content_item["add_ts"] = utils.get_current_timestamp() - if aweme_detail.get("title"): + if content_item.get("title"): await add_new_content(content_item) else: await update_content_by_content_id(aweme_id, content_item=content_item)