Add README and monthly unaccounted data feature
This commit is contained in:
13
AGENTS.md
13
AGENTS.md
@@ -46,6 +46,10 @@ OrbitIn/
|
||||
- `query_all(limit)` - 查询所有
|
||||
- `get_stats()` - 获取统计信息
|
||||
|
||||
### [`DailyReportGenerator`](src/report.py:15)
|
||||
- `generate_report(date)` - 生成日报
|
||||
- `print_report(date)` - 打印日报
|
||||
|
||||
## 文本格式约定
|
||||
|
||||
- 列表前缀:`•` 用于 `ul`,数字+点用于 `ol`
|
||||
@@ -56,11 +60,14 @@ OrbitIn/
|
||||
## 命令
|
||||
|
||||
```bash
|
||||
# 带数据库存储运行(默认)
|
||||
python3 fetch_and_process.py
|
||||
# 获取并处理数据(带数据库存储)
|
||||
python3 main.py
|
||||
|
||||
# 不存储到数据库
|
||||
python3 fetch_and_process.py --no-db
|
||||
python3 main.py --no-db
|
||||
|
||||
# 生成日报
|
||||
python3 -c "from src.report import DailyReportGenerator; g = DailyReportGenerator(); g.print_report('2025-12-28'); g.close()"
|
||||
|
||||
# 测试解析模块
|
||||
python3 -c "from src.parser import HandoverLogParser; p = HandoverLogParser(); print(p.parse(open('layout_output.txt').read())[:3])"
|
||||
|
||||
Reference in New Issue
Block a user