Files
MoFin/archive/hermes-dead-tools-20260820/kanban_create.py
T
xxm c68f987653 chore(cleansweep): 代码大扫除——归档hermes 111个死工具+4个废弃scanner,收敛MoFin/scripts重复副本,删除根旧版mo_models
- archive/hermes-dead-tools-20260820/: hermes独有不在cron不被import的111个一次性排查/测试工具
- archive/hermes-dead-tools-20260820/: 4个废弃scanner(btd1_v3/market_scanner/market_thermometer已废弃/s2v2)
- archive/legacy-cleanup-20260820/: MoFin根2旧版(mo_models/technical_analysis)+/home/hmo/scripts无引用旧项目+MoFin/scripts重复prepare_report_data
- 删除MoFin根mo_models.py(根旧版,deploy/profile-scripts权威保留)
- 保留: mofin_db.py/mo_data.py硬链接(server.py多层sys.path需各目录访问同一inode,非冗余)
- fix_gateway.py保留(Gateway看门狗fix_gateway_port.py的活跃依赖,勿误删)
- 验证: cron所有脚本引用无缺失, key模块import正常
- hermes独有从116收敛到5核心(alert_logger/market_screener/prepare_report_data/self_todo_executor_v2/xmpp_zhiwei_bot)
2026-08-20 10:36:25 +08:00

39 lines
2.0 KiB
Python
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
import sqlite3, uuid, time
db = sqlite3.connect('/home/hmo/.hermes/kanban.db')
print("=== statuses ===")
for r in db.execute("SELECT status, COUNT(*) FROM tasks GROUP BY status"):
print(r)
print()
# a pending example if any
r = db.execute("SELECT id, title, status, assignee FROM tasks WHERE status NOT IN ('done','cancelled') LIMIT 5").fetchall()
for x in r:
print(x)
# create the card for zhiwei
tid = 't_' + uuid.uuid4().hex[:8]
now = int(time.time())
title = "12维分析管道已系统化 — 每日自动刷新,请知悉并验证"
body = """笑笑(Sisyphus)完成系统级修复,知微不用再做任何手动补评。
背景:老爸发现盘前全量重评只更新了技术参数,12维LLM深度分析(full_analysis)为空/陈旧。
已落地的系统改动(已全部部署到246并提交git):
1. premarket_full_review.py 新增 Step 1.5:每交易日08:10自动跑 batch_reassess.py --type holding --today14只持仓12维分析每日强制刷新
2. batch_reassess.py 升级:--type holding|watchlist|all 全覆盖;分析超20h视为过期自动重评;现金/总资产改为从 portfolio_summary 实时读取(不再硬编码);港股前缀修复(00700等5位代码)
3. 新增每日12:30 cron「自选12维分析补全-每日午间」(watchlist_12d_backfill.py)109只缺分析的自选股每日补全
4. 验证:300308 已生成1920字12维分析(信号=观望)并写入DB;当前正在后台跑14只持仓的全量补评(/tmp/holdings_12d_backfill.log)
需要知微做的:
- 验证今天开盘简报/盯盘里能正常引用最新12维分析
- 观察今日12:30自选补全任务是否正常触发
- 有问题在kanban回复或XMPP找笑笑"""
db.execute(
"INSERT INTO tasks (id, title, body, assignee, status, priority, created_by, created_at) VALUES (?,?,?,?,?,?,?,?)",
(tid, title, body, 'zhiwei', 'pending', 1, 'xxm', now))
db.commit()
print()
print('created:', tid)
for r in db.execute("SELECT id, title, status, assignee, created_by FROM tasks WHERE id=?", (tid,)):
print(r)
db.close()