From 290526d141986112ea96089b90d62ed533e01740 Mon Sep 17 00:00:00 2001 From: junaid7haque Date: Fri, 13 Mar 2026 10:27:37 -0400 Subject: [PATCH 1/2] Made it so that when you updated a single icon/svg it doesn't delete all of them. --- download_illustrations.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/download_illustrations.py b/download_illustrations.py index bc072d0..ee67a51 100755 --- a/download_illustrations.py +++ b/download_illustrations.py @@ -217,7 +217,8 @@ def download_ehlds(token, only_ids=None): print("None of the requested IDs were found in Figma!") return False - clear_svgs(EHLD_DIR) + if not only_ids: + clear_svgs(EHLD_DIR) id_to_name = {n["id"]: n["name"] for n in nodes} urls = export_svgs( From f5af434ccbcaed21af8138ddbda98029d09abde4 Mon Sep 17 00:00:00 2001 From: junaid7haque Date: Fri, 13 Mar 2026 10:31:05 -0400 Subject: [PATCH 2/2] Added icons to the change too --- download_illustrations.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/download_illustrations.py b/download_illustrations.py index ee67a51..26f9480 100755 --- a/download_illustrations.py +++ b/download_illustrations.py @@ -186,7 +186,8 @@ def download_icons(token, only_ids=None): print("None of the requested IDs were found in Figma!") return False - clear_svgs(ICONS_DIR) + if not only_ids: + clear_svgs(ICONS_DIR) id_to_name = {n["id"]: n["name"] for n in nodes} urls = export_svgs(token, ICON_FILE_KEY, list(id_to_name.keys()), ICON_BATCH_SIZE)