From afc311b4aa930b57fb4c1127e66e630088473c33 Mon Sep 17 00:00:00 2001 From: rogersun Date: Thu, 9 Jul 2026 18:39:48 +0800 Subject: [PATCH] =?UTF-8?q?ai=E6=8E=92=E7=89=87=EF=BC=8C=E5=A2=9E=E5=8A=A0?= =?UTF-8?q?=E6=96=B0=E7=89=87=E6=8E=A8=E8=8D=90=E6=8E=92=E7=89=87=E6=95=B0?= =?UTF-8?q?=E9=87=8F=E7=9A=84=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ai/utils/show_prompt.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ai/utils/show_prompt.py b/ai/utils/show_prompt.py index 1b10987..cf45164 100644 --- a/ai/utils/show_prompt.py +++ b/ai/utils/show_prompt.py @@ -189,7 +189,8 @@ class ShowAI: Q(del_flag=False) & Q(prompt_type='show') & Q(prompt_key='Rules')).first().prompt_val # 获取提示词模板 rules = rules.replace('{template_date}', template_date) # 处理模板日期 rules = rules.replace('{available_movie}', data.get_available_movie(self.show_date)) # 处理上映影片 - rules = rules.replace('{new_movie_suggestion}', get_new_suggestion(self.cinema, self.show_date)) # 处理新片推荐数量 + new_suggestion = get_new_suggestion(self.cinema, self.show_date) + rules = rules.replace('{new_movie_suggestion}', '\t无' if new_suggestion is None else new_suggestion) # 处理新片推荐数量 prompt_list.append(rules) # 处理基本规则