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