feat: 添加阈值检查脚本,输出默认阈值及匹配结果
refactor: 优化代码格式,调整条件表达式为多行 fix: 更新预定状态,移除已参加的预定
This commit is contained in:
1 parent
804a9224ca
commit
4f0e8c364d
4 files changed
+53
-6
No files matched your search
+5
-1
@@ -417,7 +417,11 @@ def main(argv: list[str]) -> int:
|
||||
device_id, analyser.resolution_ratio_x, analyser.resolution_ratio_y
|
||||
)
|
||||
)
|
||||
seconds = int(args.yanghao_seconds) if getattr(args, "yanghao_seconds", None) else analyser._yanghao_get_recommend_seconds()
|
||||
seconds = (
|
||||
int(args.yanghao_seconds)
|
||||
if getattr(args, "yanghao_seconds", None)
|
||||
else analyser._yanghao_get_recommend_seconds()
|
||||
)
|
||||
if seconds < 1:
|
||||
seconds = 1
|
||||
getattr(analyser, "_yanghao_recommend_flow", lambda _: None)(seconds) # type: ignore[attr-defined]
|
||||
|
||||
Reference in new issue
Block a user