mirror of
https://github.com/f-droid/fdroidserver.git
synced 2025-10-08 18:31:07 +03:00
Replace itervalues() with values()
This commit is contained in:
parent
ce18d1cc85
commit
b73cc8e0b3
3 changed files with 3 additions and 3 deletions
|
@ -1070,7 +1070,7 @@ def main():
|
||||||
raise FDroidException("No apps to process.")
|
raise FDroidException("No apps to process.")
|
||||||
|
|
||||||
if options.latest:
|
if options.latest:
|
||||||
for app in apps.itervalues():
|
for app in apps.values():
|
||||||
for build in reversed(app.builds):
|
for build in reversed(app.builds):
|
||||||
if build.disable and not options.force:
|
if build.disable and not options.force:
|
||||||
continue
|
continue
|
||||||
|
|
|
@ -75,7 +75,7 @@ def main():
|
||||||
sys.exit(1)
|
sys.exit(1)
|
||||||
|
|
||||||
# Get all metadata-defined apps...
|
# Get all metadata-defined apps...
|
||||||
allmetaapps = [app for app in metadata.read_metadata().itervalues()]
|
allmetaapps = [app for app in metadata.read_metadata().values()]
|
||||||
metaapps = [app for app in allmetaapps if not app.Disabled]
|
metaapps = [app for app in allmetaapps if not app.Disabled]
|
||||||
|
|
||||||
statsdir = 'stats'
|
statsdir = 'stats'
|
||||||
|
|
|
@ -1198,7 +1198,7 @@ def main():
|
||||||
|
|
||||||
# Generate a list of categories...
|
# Generate a list of categories...
|
||||||
categories = set()
|
categories = set()
|
||||||
for app in apps.itervalues():
|
for app in apps.values():
|
||||||
categories.update(app.Categories)
|
categories.update(app.Categories)
|
||||||
|
|
||||||
# Read known apks data (will be updated and written back when we've finished)
|
# Read known apks data (will be updated and written back when we've finished)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue