fix: 修正 collector_loop 常量名拼写 _COLLECT_AFTER_TIME → COLLECT_AFTER_TIME
Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -106,7 +106,7 @@ async def collector_loop(stop: Optional[asyncio.Event] = None) -> None:
|
||||
while True:
|
||||
try:
|
||||
now = datetime.now(_CST)
|
||||
if _is_trading_day(now) and now.time() >= _COLLECT_AFTER_TIME:
|
||||
if _is_trading_day(now) and now.time() >= COLLECT_AFTER_TIME:
|
||||
trade_date = now.strftime("%Y-%m-%d")
|
||||
if not _has_collected(trade_date):
|
||||
await collect_daily(trade_date)
|
||||
|
||||
Reference in New Issue
Block a user