Skip to content

Commit f5af434

Browse files
committed
Added icons to the change too
1 parent 290526d commit f5af434

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
@@ -186,7 +186,8 @@ def download_icons(token, only_ids=None):
186186
print("None of the requested IDs were found in Figma!")
187187
return False
188188

189-
clear_svgs(ICONS_DIR)
189+
if not only_ids:
190+
clear_svgs(ICONS_DIR)
190191

191192
id_to_name = {n["id"]: n["name"] for n in nodes}
192193
urls = export_svgs(token, ICON_FILE_KEY, list(id_to_name.keys()), ICON_BATCH_SIZE)

0 commit comments

Comments
 (0)