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:]