From 9716b5e1ab19967cf9071d7512fb5a73a46c3843 Mon Sep 17 00:00:00 2001 From: Hans-Christoph Steiner Date: Wed, 24 Apr 2024 10:29:50 +0200 Subject: [PATCH] index: manual black format --- fdroidserver/index.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/fdroidserver/index.py b/fdroidserver/index.py index 778c4e75..5a179487 100644 --- a/fdroidserver/index.py +++ b/fdroidserver/index.py @@ -1825,9 +1825,8 @@ def make_altstore(apps, apks, config, repodir, pretty=False): # populate 'versions' for apk in apks: - if apk['packageName'] == packageName and apk.get( - 'apkName', '' - ).lower().endswith('.ipa'): + last4 = apk.get('apkName', '').lower()[-4:] + if apk['packageName'] == packageName and last4 == '.ipa': v = { "version": apk["versionName"], "date": apk["added"].isoformat(),