- Add analytics.home_growth_days (auto|1|7); API growth_days=auto tries 7 then 1
- Homepage shows active window and growth-board link; clearer empty reason
- New snapshot_recent scheduler task (schedule.recent_snapshot_minutes/days)
- run_recent_videos refreshes new aids only; never touches completed/backup
- Full 00:01 job keeps ok=1 skip (covers hourly refresh within 1h); mutex with recent
Home omits growth_days; backend auto (or home_growth_days 1/7) picks
the window. Response includes days alongside growth_days. Growth榜 link
uses the returned days. Non-growth sorts treat omitted/auto as 7.
kairee
merged commit 12732f6316 into main2026-11-02 10:25:36 +08:00
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Summary
analytics.home_growth_days(auto|1|7,默认auto)。growth_days=auto先试 7 天,不可用再降到 1 天;区块标题显示当前窗口,「增长榜」链接带上对应growth_days;空态文案按窗口天数说明。snapshot_recent(schedule.recent_snapshot_minutes默认 60,recent_video_days默认 2,按 pubdate 墙钟窗口)。run_recent_videos只 upsert 当日行,不改snapshot:completed/last_completed/ 日备份。与全站snapshot互斥。ok=1行(覆盖小时任务 1 小时内刚刷新的场景);完成日与备份仍由全量任务负责。Test plan
uv run python tests/test_config.py(含 home_growth_days / recent_* 校验)uv run python tests/test_snapshot.py(recent 不写完成日;全量跳过 ok=1)uv run python tests/test_web_queries.py(auto 7→1、next_runs)tests/test_*.py34 个文件离线通过