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:
parent
51c93c9576
commit
eb81375630
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user