diff --git a/src/calculation_time_constrains/service.py b/src/calculation_time_constrains/service.py index 848068f..b31449e 100644 --- a/src/calculation_time_constrains/service.py +++ b/src/calculation_time_constrains/service.py @@ -798,7 +798,7 @@ async def get_calculation_result(db_session: DbSession, calculation_id: str, col # Filter included equipment for performance included_equipment = [eq for eq in scope_calculation.equipment_results if eq.is_included] all_equipment = scope_calculation.equipment_results - all_spareparts = await get_spareparts_paginated(db_session=db_session, collector_db_session=collector_db_session ) + # all_spareparts = await get_spareparts_paginated(db_session=db_session, collector_db_session=collector_db_session ) # Pre-calculate aggregated statistics calculation_results = [] @@ -809,7 +809,7 @@ async def get_calculation_result(db_session: DbSession, calculation_id: str, col 'equipment_with_sparepart_constraints': 0, 'total_procurement_items': 0, 'critical_procurement_items': 0, - 'total_spareparts': len(all_spareparts) + 'total_spareparts': 745 } # The code `plant_monthly_metrics` is likely a function or a variable in Python. Without