Merge pull request #21 from ClaudioDrews/fix/issue-20-yaml-quote-fabric-curate

fix: strip YAML quotes in curate_entry ID comparison (fixes #20)
This commit is contained in:
Claudio Drews 2026-06-07 08:16:01 -03:00 committed by GitHub
commit afd890e594
1 changed files with 1 additions and 1 deletions

View File

@ -477,7 +477,7 @@ def curate_entry(entry_id, training_value):
for f in d.glob("*.md"):
head = f.read_text("utf-8")[:400]
m = re.search(r"^id: (.+)$", head, re.MULTILINE)
if not m or m.group(1).strip() != entry_id:
if not m or m.group(1).strip().strip('"') != entry_id:
continue
text = f.read_text("utf-8")