fix: start_recommend_worker 参数名 quote_fn 与调用方一致
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
+2
-2
@@ -53,7 +53,7 @@ def start_recommend_worker(
|
||||
*,
|
||||
db_path: str,
|
||||
get_capital_fn: Callable,
|
||||
price_fn: Callable[[str], Optional[dict]],
|
||||
quote_fn: Callable[[str], Optional[dict]],
|
||||
init_tables_fn: Callable | None = None,
|
||||
interval: int = REFRESH_INTERVAL_SEC,
|
||||
) -> None:
|
||||
@@ -67,7 +67,7 @@ def start_recommend_worker(
|
||||
if init_tables_fn:
|
||||
init_tables_fn(conn)
|
||||
capital = float(get_capital_fn(conn) or 0)
|
||||
refresh_recommend_cache(conn, capital, price_fn)
|
||||
refresh_recommend_cache(conn, capital, quote_fn)
|
||||
payload = load_recommend_cache(conn)
|
||||
finally:
|
||||
conn.close()
|
||||
|
||||
Reference in New Issue
Block a user