Skip to content

Commit 290526d

Browse files
committed
Made it so that when you updated a single icon/svg it doesn't delete all of them.
1 parent 717fed5 commit 290526d

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

download_illustrations.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,8 @@ def download_ehlds(token, only_ids=None):
217217
print("None of the requested IDs were found in Figma!")
218218
return False
219219

220-
clear_svgs(EHLD_DIR)
220+
if not only_ids:
221+
clear_svgs(EHLD_DIR)
221222

222223
id_to_name = {n["id"]: n["name"] for n in nodes}
223224
urls = export_svgs(

0 commit comments

Comments
 (0)