auto: 2026-11-18 07:18 (ESD_LAPTOP)

This commit is contained in:
2026-11-18 07:18:00 +09:00
parent 5eb42dfbd0
commit cce57c2984
9 changed files with 410 additions and 320 deletions
+14 -9
View File
@@ -80,10 +80,16 @@ def _find(key: str, files: tuple[str, ...] | None = None) -> tuple[str, dict[str
def set_alias(key: str, text: str) -> dict[str, Any]:
"""그 줄 `별칭` 만 바꿔 M01 저장 길로(빈 글 = 칸 없음 · 별칭만이라 정본 개정 확인 안 물음)."""
file, _ = _find(key)
data, version = store.read(file)
row = dict(next(r for r in data["줄"] if str(r.get("키")) == key))
"""그 줄 `별칭` 만 바꿔 M01 저장 길로(빈 글 = 칸 없음 · 별칭만이라 정본 개정 확인 안 물음) ·
단가산출 기초 = 문서 머리(855 L3 ⓐ · `Store_Logic`)."""
doc = store._docs().docs().get(key)
if doc is not None:
file = store._docs().find(key)[0]
version, row = store._docs().file_version(file), store._docs().head_of(doc)
else:
file, _ = _find(key)
data, version = store.read(file)
row = dict(next(r for r in data["줄"] if str(r.get("키")) == key))
row[ALIAS] = text
change = {"op": "edit", "key": key, "row": row}
make.save([{"file": file, "version": version, "changes": [change]}], True)
@@ -109,11 +115,10 @@ def board() -> dict[str, Any]:
(str(v.get("키")), ma.norm(v.get(ALIAS))) for v in book.values() if v.get("상태") == "승인"
}
rows = []
logic = (
store._docs().logic_files()
) # 단가산출 기초 = 수식 문서 머리(855 L2 ⓐ) · 파일 차례는 그대로
for file, data in store.loaded()[0].items():
data = logic.get(file, {}) if data.get("그룹") == "로직" else data
every = {n: d for n, d in store.loaded()[0].items() if d.get("그룹") != "로직"}
every |= store._docs().logic_files() # 단가산출 기초 = 수식 문서 머리(855 L2 ⓐ · L3 ⓐ)
for file in sorted(every): # 파일 이름 차례(마스터 폴더 차례와 같음)
data = every[file]
kind = kind_of(file, str(data.get("그룹") or ""))
for row in data.get("줄") or []:
if not str(row.get(ALIAS) or "").strip():