From 78d643bcdf796bc169fa9b98485c111a6bb1bdbf Mon Sep 17 00:00:00 2001 From: RachelOS <1327444968@qq.com> Date: Tue, 31 Mar 2026 14:48:49 +0800 Subject: [PATCH] 1.4.9-Fix --- core/db.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/core/db.py b/core/db.py index 17680a99..72700c8b 100644 --- a/core/db.py +++ b/core/db.py @@ -123,12 +123,13 @@ class Db: art.id=f"{str(art.mp_id)}-{art.id}".replace("MP_WXS_","") # type: ignore if check_exist: # 检查文章是否已存在 - existing_article = session.query(Article.id,Article.publish_time,Article.status).filter( + existing_article = session.query(Article.id,Article.publish_time,Article.status,Article.description,Article.title).filter( (Article.url == art.url) | (Article.id == art.id) ).first() if existing_article is not None: # 当更新时间和状态都相同时,不需要更新 - if art.publish_time == existing_article.publish_time and art.status == existing_article.status: # type: ignore + if art.status == existing_article.status and existing_article.publish_time==art.publish_time \ + and art.description==existing_article.description and art.title==existing_article.title: # type: ignore return False if art.content_html:# type: ignore from tools.fix import fix_html