mirror of
https://github.com/f-droid/fdroidserver.git
synced 2025-09-13 14:32:28 +03:00
stats: simpler repo type logic
This commit is contained in:
parent
51c93c9576
commit
eb81375630
1 changed files with 3 additions and 7 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue