fix: 令牌不再走 query(白名单除外)、订阅额度发成功才扣、测试临时目录移出仓库、kpt 外置 json、README 产品优先
This commit is contained in:
+7
-1
@@ -13,6 +13,7 @@ import openpyxl
|
||||
ROOT = Path(__file__).resolve().parent
|
||||
XLSX = ROOT / "report" / "错题毕业-小学-解析模板表.xlsx"
|
||||
HTML = ROOT / "prototype" / "workbench" / "index.html"
|
||||
KPT_JSON = ROOT / "prototype" / "workbench" / "kpt.json"
|
||||
|
||||
BEGIN = "/* <KPT> */"
|
||||
END = "/* </KPT> */"
|
||||
@@ -72,7 +73,12 @@ def main():
|
||||
raise SystemExit("buildAnalysis 的优先级块没找到,无法确定插哪里")
|
||||
|
||||
HTML.write_text(html, encoding="utf-8", newline="\n")
|
||||
print(f"已写入 {len(templates)} 条模板;index.html {len(html)} 字节")
|
||||
# 同一份数据再落一个 json:inline 是为了 file:// 双击能跑,
|
||||
# json 是为了评审时能 diff(147 条塞在 187KB 的 HTML 里没法看)。
|
||||
import json as _json
|
||||
KPT_JSON.write_text(_json.dumps(templates, ensure_ascii=False, indent=1, sort_keys=True),
|
||||
encoding="utf-8", newline="\n")
|
||||
print(f"已写入 {len(templates)} 条模板;index.html {len(html)} 字节;kpt.json {KPT_JSON.stat().st_size} 字节")
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
|
||||
Reference in New Issue
Block a user