Files
Pier_v1/Code/교각모델링앱/tools/patches/2026-10-16_autocheck_web_patch2.py
T
ahnyongjooandClaude Sonnet 5.5 964a841de1 chore(rebar): Pier_T_rebar 작업 폴더 초기 구성 및 외부 의존 파일 통합
- Code\rebar_pipeline, review_pipeline, pier-program을 정션에서 실제 폴더로 전환
- Code\rhino_mcp 및 CLAUDE_rhino배경.md 추가, .mcp.json은 PYTHONPATH로 새 위치 사용
- pier-program 내부 .git 제거(이력은 backup\pier-program_20261028.bundle에 보관)
- worktree 가이드 반영(CLAUDE.local.md, HANDOFF.md)
- D:\Rhino-MCP 경로 참조를 새 위치로 치환

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-28 11:20:18 +09:00

27 lines
1.2 KiB
Python

"""Stage B (2026-10-16), second part: the "근거표를 끝까지 읽었다" marker is written by a separate POST (sent by the page when the evidence
table has been scrolled to its end), not by merely opening the page (D4)."""
from pathlib import Path
P = Path(__file__).resolve().parents[2] / "web" / "app.py"
s = P.read_text(encoding="utf-8")
a = ''' store.wjson(p.dir / "confirm_view.json", {"sha": _targets_sha(p, targets), "at": store.now(), "n": len(targets)})
rest = []'''
b = ''' rest = []'''
assert s.count(a) == 1
s = s.replace(a, b)
a2 = '''@app.route("/pier/<name>/confirm_matched", methods=["GET", "POST"])'''
b2 = '''@app.post("/pier/<name>/confirm_matched/read")
def confirm_matched_read(name):
"""Marker: the evidence table of the current target list was read to its end (the page posts this when the scroll box is at the bottom)."""
p = pier_or_404(name)
targets = matched_targets(p)
store.wjson(p.dir / "confirm_view.json", {"sha": _targets_sha(p, targets), "at": store.now(), "n": len(targets)})
return {"ok": True, "n": len(targets)}
@app.route("/pier/<name>/confirm_matched", methods=["GET", "POST"])'''
assert s.count(a2) == 1
s = s.replace(a2, b2)
P.write_text(s, encoding="utf-8")
print("patched")