fix: 运行状态与日志三处修复;依赖改用 uv 锁 + 国内镜像

- 重启标记不再污染新一轮运行:hydrate_runs() 标记「已中断」后立即落库,runtime.set_state() 在切入 discovering/studying 时清掉上一轮的 error/progress/finished_at
- 服务重启后卡片「课程日志」能读到 SQLite 历史:前端兜底条件不再拿 status 是否为空做判断(重启后 status 恒为 interrupted)
- 删除账号连带清日志:account_delete() 按账号 id + 用户名清 run_state/run_log/login_log,删除接口同时清内存里两个 key
- 新增 uv.lock 依赖锁定;pyproject 走阿里云 PyPI 镜像,Dockerfile 支持 PIP_INDEX_URL 构建参数
- 文档移入 docs/,.gitignore 忽略 *.egg-info/(uv run 可编辑安装产物)
This commit is contained in:
study-tool
2026-10-31 00:53:40 +08:00
parent c4bc97dd70
commit e6515fe278
19 changed files with 1764 additions and 99 deletions
+1 -1
View File
@@ -6,7 +6,7 @@
<meta name="theme-color" content="#f6f8fc" />
<link rel="icon" type="image/svg+xml" href="/favicon.svg" />
<title>莞易学 · 多账号学习控制台</title>
<script type="module" crossorigin src="/assets/index-Dfv5RNeD.js"></script>
<script type="module" crossorigin src="/assets/index-DsTLd63E.js"></script>
<link rel="stylesheet" crossorigin href="/assets/index-BubgUKHl.css">
</head>
<body>