organized comments
This commit is contained in:
@ -7,6 +7,7 @@ http://cyxdown.free.fr/bs/
|
||||
https://projects.tuxfamily.org/ (all of them)
|
||||
https://www.artsoft.org/rocksndiamonds/
|
||||
https://web.archive.org/web/20171228172756/http://www.oletus.fi/static/whichwayisup/
|
||||
https://gitlab.com/luckeyproductions/games (all of them)
|
||||
http://cyxdown.free.fr/f2b/
|
||||
http://dead-code.org/home/
|
||||
http://e-adventure.e-ucm.es/login/index.php (games of eAdventure)
|
||||
|
@ -863,15 +863,24 @@ class EntriesMaintainer:
|
||||
print('entries not yet loaded')
|
||||
return
|
||||
|
||||
# remove download urls that are also in home
|
||||
for entry in self.entries:
|
||||
homes = entry['Home']
|
||||
downloads = entry.get('Download', [])
|
||||
downloads = [download for download in downloads if download not in homes]
|
||||
if downloads:
|
||||
entry['Download'] = downloads
|
||||
if not downloads and 'Download' in entry:
|
||||
del entry['Download']
|
||||
# which fields have lots of comments
|
||||
for field in c.valid_fields:
|
||||
values = [value for entry in self.entries for value in entry.get(field, [])]
|
||||
if isinstance(values[0], osg_parse.ValueWithComment):
|
||||
comments = [value.comment for value in values if value.comment]
|
||||
print('field {} has {} comments'.format(field, len(comments)))
|
||||
for comment in set(comments):
|
||||
print(' {} - {}'.format(comment, comments.count(comment)))
|
||||
|
||||
# # remove download urls that are also in home
|
||||
# for entry in self.entries:
|
||||
# homes = entry['Home']
|
||||
# downloads = entry.get('Download', [])
|
||||
# downloads = [download for download in downloads if download not in homes]
|
||||
# if downloads:
|
||||
# entry['Download'] = downloads
|
||||
# if not downloads and 'Download' in entry:
|
||||
# del entry['Download']
|
||||
|
||||
|
||||
# # collect statistics on git repositories
|
||||
|
Reference in New Issue
Block a user