refactor: remove duplicate scripts + JSON constants + update docs

This commit is contained in:
知微
2026-07-04 09:30:50 +08:00
parent 7d6b08953c
commit 8b114d6e9e
26 changed files with 2200 additions and 4913 deletions
+3 -4
View File
@@ -17,9 +17,9 @@ branch_scanner.py — 分支自成长数据采集器(全静默)
import json, sys, re
from datetime import datetime
from urllib.request import Request, urlopen
from mo_data import read_decisions
DECISIONS_PATH = "/home/hmo/web-dashboard/data/decisions.json"
SCANNER_STATE = "/home/hmo/web-dashboard/data/scanner_state.json"
SCANNER_STATE = "/home/hmo/web-dashboard/data/scanner_state.json"
def get_price(code):
@@ -82,8 +82,7 @@ def main():
scenario = get_scenario()
sid = scenario.get("id", "unknown")
with open(DECISIONS_PATH) as f:
data = json.load(f)
data = read_decisions()
decisions = data.get("decisions", [])
for entry in decisions: