fix: collector 龙虎榜函数名对齐(fetch_lhb_date)

This commit is contained in:
lookt
2026-09-15 20:15:49 +08:00
parent f6bdc5a983
commit 466c71c794
+3 -2
View File
@@ -181,9 +181,10 @@ class TimelineCollector:
def save_lhb_today(self, conn): def save_lhb_today(self, conn):
try: try:
from src.fetcher.lhb_fetcher import fetch_lhb from src.fetcher.lhb_fetcher import fetch_lhb_date
from src.storage.db import upsert_rows from src.storage.db import upsert_rows
df = fetch_lhb() today = datetime.now().strftime('%Y-%m-%d')
df = fetch_lhb_date(today)
if df is not None and not df.empty: if df is not None and not df.empty:
return upsert_rows(df, 'lhb_daily', return upsert_rows(df, 'lhb_daily',
conflict_cols=['trade_date', 'ts_code', 'reason']) conflict_cols=['trade_date', 'ts_code', 'reason'])