From b00ecbfcf003388469dba8f5b33822df55b44ed7 Mon Sep 17 00:00:00 2001 From: xxm Date: Mon, 17 Aug 2026 19:22:29 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E8=A1=8C=E4=B8=9A=E8=AF=BB=E5=8F=96?= =?UTF-8?q?=E6=94=B9stock=5Fsectors=5Fem(5061=E5=8F=AA=E8=A6=86=E7=9B=96?= =?UTF-8?q?=E5=85=A8,=E5=8E=9Fstock=5Fsectors=E4=BB=85898)=20+candidates.s?= =?UTF-8?q?ource=E5=88=97(=E8=B5=84=E9=87=91=E6=B5=81=E7=AA=81=E5=8F=98?= =?UTF-8?q?=E5=80=99=E9=80=89=E5=86=99=E5=85=A5,=E6=AD=A4=E5=89=8D?= =?UTF-8?q?=E9=9D=99=E9=BB=98=E5=A4=B1=E8=B4=A5=E8=87=B4=E8=B5=84=E9=87=91?= =?UTF-8?q?=E6=B5=81=E9=93=BE=E8=B7=AF08-04=E6=96=AD)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- deploy/profile-scripts/per_stock_reassess.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/deploy/profile-scripts/per_stock_reassess.py b/deploy/profile-scripts/per_stock_reassess.py index 4f729da4..2e9e27e4 100644 --- a/deploy/profile-scripts/per_stock_reassess.py +++ b/deploy/profile-scripts/per_stock_reassess.py @@ -175,6 +175,11 @@ def _build_full_analysis(code, entry, result): _sr = _s2.execute("SELECT sector_name FROM stock_sectors WHERE code=? LIMIT 1", (code,)).fetchone() if _sr and _sr[0]: lines.append(f"⑦ 行业背景:{_sr[0]}") + else: + # 2026-08-17 修复:stock_sectors 仅898只覆盖不全,改读 stock_sectors_em(5061只) + _sr2 = _s2.execute("SELECT sector FROM stock_sectors_em WHERE code=? LIMIT 1", (code,)).fetchone() + if _sr2 and _sr2[0]: + lines.append(f"⑦ 行业背景:{_sr2[0]}") _s2.close() except: pass