From 9d85601904300e17aadc134b4c5534cd2ed3d233 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=9F=A5=E5=BE=AE?= Date: Sun, 21 Jun 2026 02:55:12 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E8=AF=84=E4=BC=B0=E9=A1=B5=E5=AD=97?= =?UTF-8?q?=E6=AE=B5=E5=90=8D=E9=94=99=E8=AF=AF=EF=BC=88evaluations?= =?UTF-8?q?=E2=86=92advice=5Fevaluation=EF=BC=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- static/index.html | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/static/index.html b/static/index.html index 8070d32..eedf775 100644 --- a/static/index.html +++ b/static/index.html @@ -814,14 +814,14 @@ function renderEvaluation() { ηŠΆζ€ ${evals.map(x => { - const e = x.evaluations[0] || {}; - const t = e.theoretical || {}; - const a = e.actual || {}; + const adv = (x.advice_evaluation && x.advice_evaluation[0]) || {}; + const t = x.theoretical || {}; + const a = x.actual || {}; const status = t.status || 'safe'; const icon = status === 'take_profit_hit' ? '🟒' : status === 'stop_loss_hit' ? 'πŸ”΄' : status === 'in_entry_zone' ? 'πŸ“₯' : 'πŸ’€'; return `
${x.name}
${x.code}
- ${x.current?.slice(0,40)||'β€”'} + ${x.current || (x.advice_evaluation && x.advice_evaluation[0] && x.advice_evaluation[0].current_advice || '') || 'β€”'} ${(t.theoretical_pnl_pct||0).toFixed(1)}% ${(a.actual_pnl_pct||0).toFixed(1)}% ${icon} ${status.replace(/_/g,' ')}