1
0
mirror of https://gitlab.com/fdroid/fdroidserver.git synced 2024-09-17 10:40:12 +02:00

stats: simpler repo type logic

This commit is contained in:
Daniel Martí 2014-08-16 11:42:51 +02:00
parent 51c93c9576
commit eb81375630

View File

@ -214,13 +214,9 @@ def main():
logging.info("Processing repo types...")
repotypes = Counter()
for app in metaapps:
if len(app['Repo Type']) == 0:
rtype = 'none'
else:
if app['Repo Type'] == 'srclib':
rtype = common.getsrclibvcs(app['Repo'])
else:
rtype = app['Repo Type']
rtype = app['Repo Type'] or 'none'
if rtype == 'srclib':
rtype = common.getsrclibvcs(app['Repo'])
repotypes[rtype] += 1
f = open('stats/repotypes.txt', 'w')
for rtype in repotypes: