Prefer Chinese company names in IPO reports
Request: - Update the selected analyst reports so stock/company names include Chinese names and use Chinese names first. Changes: - Updated the selected T0 reports for 01392, 06067, 06106, and 06132 to show Chinese company names in the title and summary, with English names in parentheses. - Added company_name_zh to the analyst dataset so report generation has access to Chinese names. - Updated the report generator to prefer Chinese company names and fall back to English names only when Chinese names are unavailable. - Filled Chinese company names for the selected tickers in ipo_master and refreshed snapshots. Verification: - Compiled build_analysis_dataset.py and generate_ipo_report.py. - Ran generator dry-runs for 06132 and 01392 to confirm Chinese-first output. - Ran SQLite integrity_check and foreign_key_check. - Ran git diff --check. Next useful context: - Future generated analyst reports now use company_name_zh first when available.
This commit is contained in:
@@ -310,6 +310,7 @@ def fetch_rows(conn: sqlite3.Connection) -> list[sqlite3.Row]:
|
||||
SELECT
|
||||
m.ticker,
|
||||
m.company_name_en,
|
||||
m.company_name_zh,
|
||||
m.board,
|
||||
m.status,
|
||||
m.listing_date,
|
||||
@@ -383,6 +384,7 @@ def build_records(rows: list[sqlite3.Row], as_of: str) -> list[dict[str, Any]]:
|
||||
"analysis_as_of": as_of,
|
||||
"ticker": row["ticker"],
|
||||
"company_name_en": row["company_name_en"],
|
||||
"company_name_zh": row["company_name_zh"],
|
||||
"board": row["board"],
|
||||
"status": row["status"],
|
||||
"listing_date": row["listing_date"],
|
||||
@@ -491,6 +493,7 @@ def write_dataset(records: list[dict[str, Any]], output_path: Path) -> None:
|
||||
"analysis_as_of",
|
||||
"ticker",
|
||||
"company_name_en",
|
||||
"company_name_zh",
|
||||
"board",
|
||||
"status",
|
||||
"listing_date",
|
||||
|
||||
Reference in New Issue
Block a user