1
0
mirror of https://gitlab.com/fdroid/fdroidserver.git synced 2024-11-04 06:20:12 +01:00

Fix new downloads-per-version stats

This commit is contained in:
Ciaran Gultnieks 2014-01-23 23:31:03 +00:00
parent 75cf7de7dd
commit 80b29453a5

View File

@ -162,8 +162,11 @@ def main():
f = open('stats/total_downloads_app_version.txt', 'w')
f.write('# Total downloads by application and version, since October 2011\n')
for appVer, count in sorted(appsVer):
f.write(appVer + ' ' + str(count) + '\n')
lst = []
for appver, count in appsVer.iteritems():
lst.append(appver + " " + str(count))
for line in sorted(lst):
f.write(line + "\n")
f.close()
# Calculate and write stats for repo types...