vincent 93295db357 refactor(BIZ-87): P2/P3 迭代——代码质量改进
P2-1: 删除死代码 load_latest_draw() 和 find_next_draw_after()
  - 两个函数在修复后已无任何调用点,删除避免误导维护者

P2-2: 抽取 row_to_draw 为模块级 _row_to_draw() 公共函数
  - 消除三处重复代码,统一调用入口

P2-3: compare_type 细化为 same_day / cross_day / waiting
  - 原 'current' 语义模糊,现区分同日 vs 跨日归属

P2-4: 边界条件修复 <=  → <
  - 严格对齐规则 2.2:生成时间 ≥ 20:00 归属下一期
  - 恰好 20:00:00 现在正确归属下一期

P3: 删除不可达的 elif 死分支
  - 移除注释已说明不会到达的防御性代码

验证:8 个测试用例全部通过(含 20:00:00 边界)

Co-authored-by: multica-agent <github@multica.ai>
2026-07-09 08:23:21 +08:00
2026-07-04 09:21:43 +08:00
2026-07-04 09:21:43 +08:00
S
Description
No description provided
464 KiB
Languages
Python 61.3%
HTML 37.9%
Shell 0.8%