fix: collector 龙虎榜函数名对齐(fetch_lhb_date)
This commit is contained in:
@@ -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'])
|
||||||
|
|||||||
Reference in New Issue
Block a user