Use Chinese short names in IPO reports
Request: Prefer stock-app-style Chinese display names in IPO report tables, for example 圣邦股份 instead of the full legal issuer name. Changes: - Update the hk-ipo-analyst report naming rule to prefer sourced stock short names in 中文名 columns. - Export stock_short_name into the analysis model dataset. - Make generated single-ticker reports use the short Chinese name as the title/display label while retaining legal names for disambiguation. - Refresh the latest dated report and reports README to use Chinese short names consistently. Verification: - git diff --check - .venv/bin/python -m py_compile scripts/build_analysis_dataset.py scripts/generate_ipo_report.py - CSV validation for stock_short_name on 03661, 01688, and 01191 - Confirmed latest report and README contain no matched full legal issuer names for the refreshed shortlist
This commit is contained in:
@@ -378,6 +378,7 @@ def fetch_rows(conn: sqlite3.Connection) -> list[sqlite3.Row]:
|
||||
m.ticker,
|
||||
m.company_name_en,
|
||||
m.company_name_zh,
|
||||
m.stock_short_name,
|
||||
m.board,
|
||||
m.status,
|
||||
m.listing_date,
|
||||
@@ -466,6 +467,7 @@ def build_records(rows: list[sqlite3.Row], as_of: str) -> list[dict[str, Any]]:
|
||||
"ticker": row["ticker"],
|
||||
"company_name_en": row["company_name_en"],
|
||||
"company_name_zh": row["company_name_zh"],
|
||||
"stock_short_name": row["stock_short_name"],
|
||||
"board": row["board"],
|
||||
"status": row["status"],
|
||||
"listing_date": row["listing_date"],
|
||||
@@ -590,6 +592,7 @@ def write_dataset(records: list[dict[str, Any]], output_path: Path) -> None:
|
||||
"ticker",
|
||||
"company_name_en",
|
||||
"company_name_zh",
|
||||
"stock_short_name",
|
||||
"board",
|
||||
"status",
|
||||
"listing_date",
|
||||
|
||||
Reference in New Issue
Block a user