mirror of
https://github.com/f-droid/fdroidserver.git
synced 2025-10-05 08:51:06 +03:00
Add stats/disabled_apps.txt (closes #87)
This commit is contained in:
parent
504163b170
commit
41539d6a1b
1 changed files with 10 additions and 1 deletions
|
@ -71,7 +71,8 @@ def main():
|
|||
sys.exit(1)
|
||||
|
||||
# Get all metadata-defined apps...
|
||||
metaapps = [a for a in metadata.read_metadata().itervalues() if not a['Disabled']]
|
||||
allmetaapps = [a for a in metadata.read_metadata().itervalues()]
|
||||
metaapps = [a for a in allmetaapps if not a['Disabled']]
|
||||
|
||||
statsdir = 'stats'
|
||||
logsdir = os.path.join(statsdir, 'logs')
|
||||
|
@ -283,6 +284,14 @@ def main():
|
|||
f.write(license + ' ' + str(count) + '\n')
|
||||
f.close()
|
||||
|
||||
# Write list of disabled apps...
|
||||
logging.info("Processing disabled apps...")
|
||||
disabled = [a['id'] for a in allmetaapps if a['Disabled']]
|
||||
f = open('stats/disabled_apps.txt', 'w')
|
||||
for appid in sorted(disabled):
|
||||
f.write(appid + '\n')
|
||||
f.close()
|
||||
|
||||
# Write list of latest apps added to the repo...
|
||||
logging.info("Processing latest apps...")
|
||||
latest = knownapks.getlatest(10)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue