避免说明文字刷新反复打断提议确认
This commit is contained in:
parent
e4a77bff34
commit
ac5446482c
|
|
@ -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):
|
||||
|
|
|
|||
|
|
@ -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):
|
||||
|
|
|
|||
Loading…
Reference in New Issue