1
0
mirror of https://github.com/konpa/devicon.git synced 2025-07-31 03:40:16 +02:00

Fix duplicated past icons in build process (#674)

This commit is contained in:
Thomas Bui
2021-06-13 14:32:49 -07:00
committed by GitHub
parent 26e2c64f4f
commit 794e8592ba

View File

@@ -67,7 +67,8 @@ def get_icons_for_building(devicon_json_path: str, token: str):
for pull_req in pull_reqs:
if api_handler.is_feature_icon(pull_req):
filtered_icon = util.find_object_added_in_this_pr(all_icons, pull_req["title"])
new_icons.append(filtered_icon)
if filtered_icon not in new_icons:
new_icons.append(filtered_icon)
return new_icons