From c79e26e822722a75d745d19abb47c8d095875e80 Mon Sep 17 00:00:00 2001 From: hyungi Date: Mon, 30 Mar 2026 15:05:07 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20=EB=B2=95=EB=A0=B9=20=EC=9E=84=ED=8F=AC?= =?UTF-8?q?=ED=8A=B8=20=EA=B2=BD=EB=A1=9C=20=EC=88=98=EC=A0=95=20=E2=80=94?= =?UTF-8?q?=20/10=5FLegislation/Law/{=EB=B2=95=EB=A0=B9=EB=AA=85}?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 기존: /10_Legislation/{법령명} (Law 폴더 누락) 수정: /10_Legislation/Law/{법령명} (architecture 설계 구조와 일치) Co-Authored-By: Claude Opus 4.6 (1M context) --- scripts/law_monitor.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/law_monitor.py b/scripts/law_monitor.py index bc378aa..10f17b5 100644 --- a/scripts/law_monitor.py +++ b/scripts/law_monitor.py @@ -145,7 +145,7 @@ def import_law_to_devonthink(law_name: str, md_files: list[Path], category: str) 3단계 교체: 기존 폴더 이동 → 신규 생성 → 구 폴더 삭제 (wiki-link 끊김 최소화) """ safe_name = law_name.replace(" ", "_") - group_path = f"/10_Legislation/{safe_name}" + group_path = f"/10_Legislation/Law/{safe_name}" # 1단계: 기존 폴더 이동 (있으면) rename_script = ( @@ -193,7 +193,7 @@ def import_law_to_devonthink(law_name: str, md_files: list[Path], category: str) 'tell application id "DNtp"\n' ' repeat with db in databases\n' ' if name of db is "04_Industrial safety" then\n' - f' set oldGroup to get record at "/10_Legislation/{safe_name}_old" in db\n' + f' set oldGroup to get record at "/10_Legislation/Law/{safe_name}_old" in db\n' ' if oldGroup is not missing value then\n' ' delete record oldGroup\n' ' end if\n'