fix: 법령 임포트 경로 수정 — /10_Legislation/Law/{법령명}

기존: /10_Legislation/{법령명} (Law 폴더 누락)
수정: /10_Legislation/Law/{법령명} (architecture 설계 구조와 일치)

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
hyungi
2026-03-30 15:05:07 +09:00
parent 4b7ddf39c1
commit c79e26e822

View File

@@ -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'