Fix: pass time_range parameter to generate_recommendations for proper 7-day data

This commit is contained in:
2025-10-03 09:41:02 -03:00
parent eb2c0c23b5
commit 6c2821609c
2 changed files with 4 additions and 4 deletions

View File

@@ -1469,7 +1469,7 @@ async def get_workload_historical_details(
memory_data = await historical_service.get_memory_usage_history(namespace, workload, time_range)
# Generate recommendations
recommendations = await historical_service.generate_recommendations(namespace, workload)
recommendations = await historical_service.generate_recommendations(namespace, workload, time_range)
return {
"workload": workload,