From d60c8bc5117bd750ec3483d442ac37b57e616b94 Mon Sep 17 00:00:00 2001 From: ariwahyunahar Date: Mon, 5 Jan 2026 21:45:46 +0700 Subject: [PATCH] Perubahan run2.py -> value EaF dan CF dari input, kecuali tahun prediksi ambil dari master --- src/modules/equipment/where_query_sql.py | 2 +- src/modules/plant/run2.py | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/modules/equipment/where_query_sql.py b/src/modules/equipment/where_query_sql.py index 1f633d9..f6dd454 100644 --- a/src/modules/equipment/where_query_sql.py +++ b/src/modules/equipment/where_query_sql.py @@ -36,4 +36,4 @@ def get_where_query_sql_all_worktype(assetnum): ) AND a.worktype in ('CM', 'PROACTIVE', 'EM') """ - return where_query \ No newline at end of file + return where_query \ No newline at end of file diff --git a/src/modules/plant/run2.py b/src/modules/plant/run2.py index 1ae0818..4cbae23 100644 --- a/src/modules/plant/run2.py +++ b/src/modules/plant/run2.py @@ -459,10 +459,10 @@ def main(): # rata-rata 3 tahun terakhir untuk net_capacity_factor if data["is_actual"] == 1: - eaf_history.append(eaf_v) - cf_history.append(net_capacity_factor_v) - net_capacity_factor = net_capacity_factor_v - eaf = eaf_v + eaf_history.append(validate_number(data["eaf"])) + cf_history.append(validate_number(data["net_capacity_factor"])) + net_capacity_factor = validate_number(data["net_capacity_factor"]) + eaf = validate_number(data["eaf"]) else: last_3_eaf = eaf_history[-3:] last_3_cf = cf_history[-3:]