index: rename app var to app_dict, its not an App instance

Throughout the code, variables named "app" are instances of the App class.
In this case, this is related, but it is a dict not an App instance, since
it is being prepared for including in the index-v1.json.
This commit is contained in:
Hans-Christoph Steiner 2023-05-03 19:20:45 +02:00
parent 8bc9a3da73
commit 024d309262
2 changed files with 13 additions and 13 deletions

View file

@ -2343,10 +2343,10 @@ def main():
add_apks_to_per_app_repos(repodirs[0], apks)
for appid, app in apps.items():
repodir = os.path.join(appid, 'fdroid', 'repo')
appdict = dict()
appdict[appid] = app
app_dict = dict()
app_dict[appid] = app
if os.path.isdir(repodir):
index.make(appdict, apks, repodir, False)
index.make(app_dict, apks, repodir, False)
else:
logging.info(_('Skipping index generation for {appid}').format(appid=appid))
return