mirror of
https://ghfast.top/https://github.com/aeroxw/easy-tdx.git
synced 2026-09-12 14:34:15 +08:00
style: ruff format security_bars.py(修复 ci.yml format 检查)
合并 e3e8dd4 时采用远程版本,但其 _log.warning 字符串换行未跑
ruff format,导致 ci.yml 的 format 检查失败。纯格式调整,无逻辑变化。
This commit is contained in:
@@ -85,8 +85,7 @@ class GetSecurityBarsCmd(BaseCommand[list[SecurityBar]]):
|
||||
# 成功解析的前若干条,避免一条坏数据让整页 500。
|
||||
if bars:
|
||||
_log.warning(
|
||||
"K线响应在第 %d/%d 条处被截断(%s),已丢弃末尾残缺记录,"
|
||||
"返回前 %d 条",
|
||||
"K线响应在第 %d/%d 条处被截断(%s),已丢弃末尾残缺记录,返回前 %d 条",
|
||||
i + 1,
|
||||
ret_count,
|
||||
e,
|
||||
@@ -154,8 +153,7 @@ class GetIndexBarsCmd(GetSecurityBarsCmd):
|
||||
except TdxDecodeError as e:
|
||||
if bars:
|
||||
_log.warning(
|
||||
"指数K线响应在第 %d/%d 条处被截断(%s),已丢弃末尾残缺记录,"
|
||||
"返回前 %d 条",
|
||||
"指数K线响应在第 %d/%d 条处被截断(%s),已丢弃末尾残缺记录,返回前 %d 条",
|
||||
i + 1,
|
||||
ret_count,
|
||||
e,
|
||||
|
||||
Reference in New Issue
Block a user