refactor: remove duplicate scripts + JSON constants + update docs
This commit is contained in:
+3
-4
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user