Skip to content

Commit 5245aea

Browse files
Fix EHLD download for new Figma page structure
The Export page now nests R-HSA- frames inside a child frame. Use get_nodes_on_page helper which handles nested children. Re-downloaded all 217 EHLDs with updated SVGs from Figma. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 8cf7394 commit 5245aea

169 files changed

Lines changed: 33520 additions & 33564 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

download_illustrations.py

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -195,16 +195,7 @@ def download_ehlds(token):
195195
page_id = get_export_page_id(token, EHLD_FILE_KEY)
196196
print(f"Found '{EXPORT_PAGE_NAME}' page (id: {page_id})")
197197

198-
# EHLDs are direct children of the Export page (frames, depth=1 is enough)
199-
url = f"https://api.figma.com/v1/files/{EHLD_FILE_KEY}/nodes?ids={page_id}&depth=1"
200-
resp = requests.get(url, headers=figma_headers(token))
201-
resp.raise_for_status()
202-
page_data = resp.json()["nodes"][page_id]["document"]
203-
nodes = [
204-
{"id": c["id"], "name": c["name"].strip()}
205-
for c in page_data.get("children", [])
206-
if c["name"].strip().startswith("R-HSA-")
207-
]
198+
nodes = get_nodes_on_page(token, EHLD_FILE_KEY, page_id, "R-HSA-")
208199
print(f"Found {len(nodes)} EHLD diagrams")
209200
if not nodes:
210201
print("No EHLDs found!")

ehld/R-HSA-109582.svg

Lines changed: 1 addition & 6 deletions
Loading

ehld/R-HSA-1226099.svg

Lines changed: 2 additions & 0 deletions
Loading

0 commit comments

Comments
 (0)