fix(gas-eval-dash): resolve daily_history header mismatch and redeploy version 9
This commit is contained in:
@@ -2282,12 +2282,15 @@ function updateEvaluationDashboard_() {
|
||||
Logger.log('[EVAL_DASH] daily_history 데이터 부족');
|
||||
return;
|
||||
}
|
||||
var hHdr = histData[0].map(function(c) { return String(c).trim(); });
|
||||
var hHdr = histData[0].map(function(c) { return String(c).trim().toLowerCase(); });
|
||||
var hDateIdx = hHdr.indexOf('date');
|
||||
var hAssetIdx = hHdr.indexOf('total_asset');
|
||||
if (hAssetIdx < 0) {
|
||||
hAssetIdx = hHdr.indexOf('total_asset_krw');
|
||||
}
|
||||
var hMddIdx = hHdr.indexOf('mdd_pct');
|
||||
if (hDateIdx < 0 || hAssetIdx < 0) {
|
||||
Logger.log('[EVAL_DASH] daily_history 헤더 불일치: ' + hHdr.join(','));
|
||||
Logger.log('[EVAL_DASH] daily_history 헤더 불일치: ' + histData[0].join(','));
|
||||
return;
|
||||
}
|
||||
var todayHistRow = null;
|
||||
|
||||
Reference in New Issue
Block a user