Skip to content

Commit

Permalink
more
Browse files Browse the repository at this point in the history
  • Loading branch information
lipis committed Jan 17, 2025
1 parent 4b39823 commit ad6697d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion flag-ids.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

def add_ids(directory):
for f in files:
if f == ".DS_Store":
if f.find(".svg") == -1:
continue
filename = os.path.join(directory, f)
update = False
Expand Down
2 changes: 1 addition & 1 deletion flags.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
files.extend(filenames)
break

file_codes = [name.replace(".svg", "") for name in files if name != ".DS_Store"]
file_codes = [name.replace(".svg", "") for name in files if name.find(".svg") > 0]

country_json = open("country.json")
flags = json.load(country_json)
Expand Down

0 comments on commit ad6697d

Please sign in to comment.