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'