fix(gas-eval-dash): resolve daily_history header mismatch and redeploy version 9
This commit is contained in:
@@ -15,5 +15,5 @@
|
|||||||
"keep package scripts within release envelope"
|
"keep package scripts within release envelope"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"source_zip_sha256": "62840230a4e2c3ef94571ffe40797dd7d84679c98ad79ac6d59f67b11d1afbe7"
|
"source_zip_sha256": "3f9ba0b11d96ac261fe6ca515d9cafd0b963a4dc5a0431081ae3515a0cc8296b"
|
||||||
}
|
}
|
||||||
@@ -1,5 +1,5 @@
|
|||||||
// gas_lib.gs - Common utilities & static features
|
// 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
|
// 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
|
// GAS global scope: functions in gas_data_feed.gs / gas_data_collect.gs callable directly
|
||||||
//
|
//
|
||||||
|
|||||||
@@ -2282,12 +2282,15 @@ function updateEvaluationDashboard_() {
|
|||||||
Logger.log('[EVAL_DASH] daily_history 데이터 부족');
|
Logger.log('[EVAL_DASH] daily_history 데이터 부족');
|
||||||
return;
|
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 hDateIdx = hHdr.indexOf('date');
|
||||||
var hAssetIdx = hHdr.indexOf('total_asset');
|
var hAssetIdx = hHdr.indexOf('total_asset');
|
||||||
|
if (hAssetIdx < 0) {
|
||||||
|
hAssetIdx = hHdr.indexOf('total_asset_krw');
|
||||||
|
}
|
||||||
var hMddIdx = hHdr.indexOf('mdd_pct');
|
var hMddIdx = hHdr.indexOf('mdd_pct');
|
||||||
if (hDateIdx < 0 || hAssetIdx < 0) {
|
if (hDateIdx < 0 || hAssetIdx < 0) {
|
||||||
Logger.log('[EVAL_DASH] daily_history 헤더 불일치: ' + hHdr.join(','));
|
Logger.log('[EVAL_DASH] daily_history 헤더 불일치: ' + histData[0].join(','));
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
var todayHistRow = null;
|
var todayHistRow = null;
|
||||||
|
|||||||
Reference in New Issue
Block a user