Skip to content

Commit db8bf32

Browse files
committed
fix: pass ensemble_reports and radar_data through sync analysis path
_build_analysis_report already received details_data containing both fields from analysis_service; wire them explicitly into ReportDetails so the sync response (async_mode=false) matches the history detail response and the frontend always receives ensemble/radar payloads.
1 parent b0caca4 commit db8bf32

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

api/v1/endpoints/analysis.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -810,6 +810,8 @@ def _build_analysis_report(
810810
dividend_metrics=extracted_fundamental.get("dividend_metrics"),
811811
belong_boards=extracted_boards.get("belong_boards"),
812812
sector_rankings=extracted_boards.get("sector_rankings"),
813+
ensemble_reports=details_data.get("ensemble_reports"),
814+
radar_data=details_data.get("radar_data"),
813815
)
814816

815817
return AnalysisReport(

0 commit comments

Comments
 (0)