From ad6697d057a83bd09ed616a4a2971727625d6913 Mon Sep 17 00:00:00 2001 From: Panayiotis Lipiridis Date: Fri, 17 Jan 2025 16:02:47 +0200 Subject: [PATCH] more --- flag-ids.py | 2 +- flags.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/flag-ids.py b/flag-ids.py index c68a8ce8d..7c41c75da 100644 --- a/flag-ids.py +++ b/flag-ids.py @@ -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 diff --git a/flags.py b/flags.py index c597ff57f..d0c59ab01 100644 --- a/flags.py +++ b/flags.py @@ -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)