feat: 热点穿透题材数从50提升到100,支持缓存定向清理

- 热点穿透top由50提升到100(涨幅榜+热度榜各取前100合并),保证题材数≥100
- themes.py graph路由top上限le由60放宽到200
- daily_collector HOTMAP_TOP_N同步到100与页面一致
- auvops.sh新增cache-clear-graph子命令定向清理theme_graph缓存
This commit is contained in:
Sakurasan
2026-08-18 04:14:17 +08:00
parent 48522cbfea
commit bb2be17ae2
5 changed files with 23 additions and 5 deletions
+1 -1
View File
@@ -29,7 +29,7 @@ async def theme_list(
@router.get("/graph", summary="热点穿透:题材-股票网状关系图")
async def theme_graph(
sort_field: int = Query(1, description="题材排序:1=涨幅 4=热度"),
top: int = Query(30, ge=1, le=60, description="题材数量"),
top: int = Query(30, ge=1, le=200, description="题材数量"),
limit: int = Query(1000, ge=100, le=2000, description="下发的股票节点上限(按穿透度取前 N 只)"),
):
if sort_field not in (1, 4):