From 567e8b901bca30a80684768cc3b54d2fd7f10b11 Mon Sep 17 00:00:00 2001 From: konjacpotato Date: Thu, 19 Feb 2026 18:59:59 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8F=AA=E5=A4=84=E7=90=86=E4=BB=8A=E5=A4=A9?= =?UTF-8?q?=E7=9A=84=E5=B8=96=E5=AD=90=EF=BC=8C=E9=81=BF=E5=85=8D=E9=87=8D?= =?UTF-8?q?=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- task/hot_topic/real_estate_story.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/task/hot_topic/real_estate_story.py b/task/hot_topic/real_estate_story.py index 1c6e9f9..f87a670 100644 --- a/task/hot_topic/real_estate_story.py +++ b/task/hot_topic/real_estate_story.py @@ -9,9 +9,9 @@ from llm import LLMThinkingEngine def story_edit_task(): with SessionLocal() as db: - # 获取昨天至今的最新10条帖子信息 + # 获取今天最新的帖子(限定,最多10条) today_contents = db.query(SourceContent).filter( - SourceContent.create_time >= (datetime.today().replace(hour=0, minute=0, second=0, microsecond=0) - timedelta(days=1)) + SourceContent.create_time >= (datetime.today().replace(hour=0, minute=0, second=0, microsecond=0)) ).order_by(SourceContent.create_time.desc()).limit(10).all() if len(today_contents) == 0: logger.info("story_edit_task finish, content size 0")