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):