refactor: remove duplicate scripts + JSON constants + update docs
This commit is contained in:
@@ -20,7 +20,6 @@ from urllib.request import Request, urlopen
|
||||
from mo_data import read_decisions
|
||||
from mofin_db import get_conn, write_holding_strategy
|
||||
|
||||
DECISIONS_PATH = "/home/hmo/web-dashboard/data/decisions.json"
|
||||
SCANNER_STATE = "/home/hmo/web-dashboard/data/scanner_state.json"
|
||||
|
||||
|
||||
@@ -110,10 +109,6 @@ def main():
|
||||
conn.close()
|
||||
except Exception:
|
||||
pass
|
||||
# [migrated to DB] — cold backup removed
|
||||
# with open(DECISIONS_PATH, "w") as f:
|
||||
# json.dump(data, f, indent=2, ensure_ascii=False)
|
||||
|
||||
# 更新状态快照
|
||||
state = {"scenario": sid, "updated_at": now.isoformat(), "branches": {}}
|
||||
for e in decisions:
|
||||
|
||||
Reference in New Issue
Block a user