From 6bbb19761ee4c09cf08f010d25480d7d08c856d0 Mon Sep 17 00:00:00 2001 From: Cizz22 Date: Tue, 2 Sep 2025 14:07:21 +0700 Subject: [PATCH] dada --- src/calculation_target_reliability/service.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/calculation_target_reliability/service.py b/src/calculation_target_reliability/service.py index 8f61571..8e563a7 100644 --- a/src/calculation_target_reliability/service.py +++ b/src/calculation_target_reliability/service.py @@ -114,7 +114,7 @@ def calculate_asset_eaf_contributions(plant_result, eq_results, plot_result): for asset in eq_results: # Weight based on production capacity - capacity_weight = asset.get('production', 0) / plant_production if plant_productions > 0 else 0 + capacity_weight = asset.get('production', 0) / plant_production if plant_production > 0 else 0 plot_data = next((item for item in plot_result if item['aeros_node']['node_name'] == asset['aeros_node']['node_name']), None) # Get asset EAF and downtime