 SakurasanandClaude
|
eb66ab02d0
|
feat: 交易日9:31清空全部缓存,保证开盘后数据全新
- services/cache.py 新增 clear_all() 清空整个 cache 表
- daily_collector.py 新增 cache_cleanup_loop() 后台循环:精确 sleep 到最近一个
工作日 9:31 清空缓存,跳过周末,出错1分钟重试
- main.py lifespan 启动清理任务,与采集任务一同优雅退出
与既有"非交易时段 TTL 截止到下次开盘前"的惰性过期形成双保险
Co-Authored-By: Claude <noreply@anthropic.com>
|
2026-08-11 16:56:56 +08:00 |
|
 SakurasanandClaude
|
f93ffd381b
|
feat: 核心股追踪选股并入热点穿透核心股(覆盖题材数降序前100,去重)
选股口径由仅'题材领涨股涨幅前100'改为:
- 热点穿透核心股(覆盖题材数≥2,按覆盖数降序前100)
- 合并题材领涨股涨幅前100,按股票代码去重
复用 _build_theme_graph 计算每股覆盖题材数;热点穿透构建失败
时降级为仅领涨股前100,不影响当日采集。
Co-Authored-By: Claude <noreply@anthropic.com>
|
2026-08-10 22:31:38 +08:00 |
|
 SakurasanandClaude
|
23644a9c77
|
feat: 题材涨幅前20存历史(原前10)
- daily_collector TOP_THEME_LIMIT 10 → 20
- 同步 routes/collector 注释与 spec/plan 文档
- 实测 2026-08-10 题材前20入库 20 条,themes/history 返回 20 条
Co-Authored-By: Claude <noreply@anthropic.com>
|
2026-08-10 21:27:54 +08:00 |
|
 SakurasanandClaude
|
258fc9184d
|
feat: 补齐 spec 遗漏 — themes/history 接口 + cover_count/coverCount/daysSinceLastAppear
Co-Authored-By: Claude <noreply@anthropic.com>
|
2026-08-10 21:08:39 +08:00 |
|
 SakurasanandClaude
|
526b182051
|
fix: 修复 collector_loop 常量名(NameError)并填充核心股所属题材
Co-Authored-By: Claude <noreply@anthropic.com>
|
2026-08-10 19:49:36 +08:00 |
|
 SakurasanandClaude
|
14c31e3f06
|
fix: 修正 collector_loop 常量名拼写 _COLLECT_AFTER_TIME → COLLECT_AFTER_TIME
Co-Authored-By: Claude <noreply@anthropic.com>
|
2026-08-10 19:38:24 +08:00 |
|
 SakurasanandClaude
|
aed3eea739
|
feat: 每日核心股/题材采集服务(幂等)
Co-Authored-By: Claude <noreply@anthropic.com>
|
2026-08-10 19:30:35 +08:00 |
|