vn6295337 Claude Opus 4.5 commited on
Commit
69cd30e
·
1 Parent(s): 86951ae

Remove duplicate Company Details from markdown output

Browse files

Company profile info is already displayed in frontend's Company Profile
section - no need to duplicate in backend markdown.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>

Files changed (1) hide show
  1. src/nodes/analyzer.py +0 -26
src/nodes/analyzer.py CHANGED
@@ -335,32 +335,6 @@ def _generate_data_report(raw_data: str, is_financial: bool = False) -> str:
335
  lines.append(f"# Data Report: {company} ({ticker})")
336
  lines.append("")
337
 
338
- # ========== COMPANY DETAILS ==========
339
- company_profile = _extract_company_profile(raw_data)
340
- if company_profile:
341
- lines.append("## Company Details")
342
- lines.append("")
343
- lines.append("| Field | Value |")
344
- lines.append("|-------|-------|")
345
- if company_profile.get("sector"):
346
- lines.append(f"| Sector | {company_profile['sector']} |")
347
- if company_profile.get("industry"):
348
- lines.append(f"| Industry | {company_profile['industry']} |")
349
- if company_profile.get("business_address"):
350
- lines.append(f"| Headquarters | {company_profile['business_address']} |")
351
- if company_profile.get("employees"):
352
- employees = company_profile['employees']
353
- if isinstance(employees, int):
354
- employees = f"{employees:,}"
355
- lines.append(f"| Employees | {employees} |")
356
- if company_profile.get("website"):
357
- lines.append(f"| Website | {company_profile['website']} |")
358
- if company_profile.get("cik"):
359
- lines.append(f"| CIK | {company_profile['cik']} |")
360
- if company_profile.get("sic_description"):
361
- lines.append(f"| SIC | {company_profile['sic_description']} |")
362
- lines.append("")
363
-
364
  # ========== FINANCIALS ==========
365
  fin_all = multi_source.get("fundamentals_all", {})
366
  sec_data = fin_all.get("sec_edgar", {}).get("data", {})
 
335
  lines.append(f"# Data Report: {company} ({ticker})")
336
  lines.append("")
337
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
338
  # ========== FINANCIALS ==========
339
  fin_all = multi_source.get("fundamentals_all", {})
340
  sec_data = fin_all.get("sec_edgar", {}).get("data", {})