fix video label

This commit is contained in:
zaiun xu
2026-04-10 10:30:01 +08:00
parent e1b514836e
commit 09736f9e15
20 changed files with 518 additions and 268 deletions

View File

@@ -4,8 +4,8 @@
接口每次 GET 会「消费」一条未投递快照;仅当响应头 X-Fish-Biomass-New: 1或 JSON code!=200时打日志。
BIOMASS_API_BASE=http://127.0.0.1:8000 POLL_INTERVAL=5 \\
python scripts/biomass_poller.py
cd <仓库根目录>
BIOMASS_API_BASE=http://127.0.0.1:8000 POLL_INTERVAL=5 python3 scripts/biomass_poller.py
依赖(与 fish_api dev 组一致httpx、loguru
cd fish_api && pip install -e ".[dev]"

View File

@@ -1,11 +0,0 @@
#!/usr/bin/env bash
# 仓库根目录入口:与 fish_api/start.sh 等价(启动前清空 SQLite、watch 状态、measure/action 输出目录等)
#
# conda activate fishserver # 若不用 uv
# export PUBLIC_BASE_URL=http://<本机对外IP>:8001
# PORT=8001 bash scripts/run_fishserver.sh
#
set -euo pipefail
ROOT="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"
exec bash "$ROOT/fish_api/start.sh"

View File

@@ -1,10 +0,0 @@
#!/usr/bin/env bash
# 与 scripts/run_fishserver.sh 等价(历史名称保留);均会先执行 app.prestart_fresh 再启动 uvicorn
#
# bash scripts/start_fishapi_fresh.sh
# PORT=8001 bash scripts/start_fishapi_fresh.sh
#
set -euo pipefail
ROOT="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"
exec bash "$ROOT/fish_api/start_fresh.sh"

9
scripts/start_fresh.sh Executable file
View File

@@ -0,0 +1,9 @@
#!/usr/bin/env bash
# 仓库根入口:等价于 fish_api/start_fresh.sh先 prestart_fresh 再 uvicorn
#
# bash scripts/start_fresh.sh
# PORT=8001 bash scripts/start_fresh.sh
#
set -euo pipefail
ROOT="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"
exec bash "$ROOT/fish_api/start_fresh.sh"

8
scripts/start_no_fresh.sh Executable file
View File

@@ -0,0 +1,8 @@
#!/usr/bin/env bash
# 仓库根入口:等价于 fish_api/start_no_fresh.sh保留 SQLite 与缓存)
#
# bash scripts/start_no_fresh.sh
#
set -euo pipefail
ROOT="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"
exec bash "$ROOT/fish_api/start_no_fresh.sh"