From 53185ea2e76848707fd902539a2dd21dfa98e534 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michael=20P=C3=B6hn?= Date: Thu, 14 Mar 2024 13:51:11 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=AB=8F=20appeace=20linter?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- fdroidserver/update.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/fdroidserver/update.py b/fdroidserver/update.py index 8839c531..421b6aff 100644 --- a/fdroidserver/update.py +++ b/fdroidserver/update.py @@ -1285,11 +1285,11 @@ def insert_localized_ios_app_metadata(apps_with_packages): screenshots[lang_code][device_name][screenshot_name] = screenshot # copy screenshots to repo dir - for lang_code in screenshots.keys(): - for device in screenshots[lang_code].keys(): + for lang_code, translated_screenshots in screenshots.items(): + for device, translated_device_screenthos in translated_screenshots.items(): dest_dir = pathlib.Path('repo') / package_name / lang_code / device dest_dir.mkdir(mode=0o755, parents=True, exist_ok=True) - for name, path in screenshots[lang_code][device].items(): + for name, path in translated_device_screenshots.items(): dest = dest_dir / (name.replace(" ", "_").replace("\t", "_") + path.suffix) _strip_and_copy_image(str(path), str(dest))