diff --git a/static/index.html b/static/index.html index e383e613..21120a9c 100644 --- a/static/index.html +++ b/static/index.html @@ -369,11 +369,11 @@ function refreshMarketData() { Promise.all([ fetchJSON('/api/market'), fetchJSON('/api/signals'), - ]).then(([mkt, signals]) => { + fetchJSON('/api/candidates'), + ]).then(([mkt, signals, candidates]) => { const sectors = mkt.sectors || []; const sigs = signals || []; - const xiaoguo = sigs.filter(s => s.source === 'xiaoguo'); - const trend = sigs.filter(s => s.source !== 'xiaoguo'); + const cands = candidates || []; el.innerHTML = `
| 代η | εη§° | +S2 | S3 | +S4 | S5 | +η»θ― | ηη± | +ηΆζ | +
|---|---|---|---|---|---|---|---|---|
| ' + c.code + ' | ' + + '' + c.name + ' | ' + + '' + s2 + ' | ' + + '' + s3 + ' | ' + + '' + s4 + ' | ' + + '' + s5 + ' | ' + + '' + (c.score_final||'-') + ' | ' + + '' + (c.reason||'').slice(0,50) + ' | ' + + '' + status + '' + + '' + logSummary + ' | ' + + '