From ac5446482c089a74a68b096ff55b54fddb8db197 Mon Sep 17 00:00:00 2001 From: baobao Date: Thu, 12 Nov 2026 12:22:41 +0800 Subject: [PATCH] =?UTF-8?q?=E9=81=BF=E5=85=8D=E8=AF=B4=E6=98=8E=E6=96=87?= =?UTF-8?q?=E5=AD=97=E5=88=B7=E6=96=B0=E5=8F=8D=E5=A4=8D=E6=89=93=E6=96=AD?= =?UTF-8?q?=E6=8F=90=E8=AE=AE=E7=A1=AE=E8=AE=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/core/proposal_analysis.py | 3 ++- scripts/test_proposal_trader_view.py | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/app/core/proposal_analysis.py b/app/core/proposal_analysis.py index e4eab9e..bfdfcea 100644 --- a/app/core/proposal_analysis.py +++ b/app/core/proposal_analysis.py @@ -23,9 +23,10 @@ def decision_basis(hard): votes = con.get('votes') or {} return {'fund': (h.get('fund_stance') or {}).get('stance') or votes.get('fund'), 'tech': {k: tech.get(k) for k in ('stance', 'phase', 'data_date', 'sar_side')}, + 'intraday_confirmation': (tech.get('intraday') or {}).get('kind'), 'timing': timing.get('stance') or votes.get('timing'), 'timing_label': timing_view(timing)['label'], - 'consensus': {k: con.get(k) for k in ('direction', 'strength', 'route', 'route_reason')}} + 'consensus': {k: con.get(k) for k in ('direction', 'strength', 'route')}} def changed(old, current): diff --git a/scripts/test_proposal_trader_view.py b/scripts/test_proposal_trader_view.py index ce401c2..a4946b4 100644 --- a/scripts/test_proposal_trader_view.py +++ b/scripts/test_proposal_trader_view.py @@ -42,6 +42,7 @@ class TraderViewTests(unittest.TestCase): a=hard();b=copy.deepcopy(a) b['timing'].update(event={'key':'refreshed','verified_at':'new'},fresh=True) b['tech']['latest']={'close':23.4} + b['consensus']['route_reason']='说明内的实时价格刷新' self.assertFalse(pa.changed(a,b)) self.assertEqual(plan_revision.confirmation_revision(100,a,{}),plan_revision.confirmation_revision(100,b,{})) def test_readonly_current_analysis_disables_stale_confirmation_preserves_history(self):