mirror of
https://gitlab.com/fdroid/fdroidserver.git
synced 2024-09-17 18:50:11 +02:00
Replace itervalues() with values()
This commit is contained in:
parent
ce18d1cc85
commit
b73cc8e0b3
@ -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…
Reference in New Issue
Block a user