fix(gas-eval-dash): resolve daily_history header mismatch and redeploy version 9

This commit is contained in:
2026-06-14 13:13:01 +09:00
parent ad77c96157
commit 7e136b7f1c
3 changed files with 7 additions and 4 deletions
+1 -1
View File
@@ -1,5 +1,5 @@
// gas_lib.gs - Common utilities & static features
// Last Updated: 2026-06-14 13:01:11 KST
// Last Updated: 2026-06-14 13:11:22 KST
// Math/KRX utils, sheet I/O, sector flow, Web API, static runners
// GAS global scope: functions in gas_data_feed.gs / gas_data_collect.gs callable directly
//
+5 -2
View File
@@ -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;