check of external links now with redirects

This commit is contained in:
Trilarion
2020-08-14 14:04:19 +02:00
parent b61e189f49
commit bd8d411f1d
106 changed files with 271 additions and 248 deletions

View File

@ -295,7 +295,9 @@ def clean_lgw_content():
# statistics before
print('field contents before')
fields = sorted(list(unique_fields - set(('description', 'external links', 'dev home', 'forum', 'home', 'linux-packages', 'developer', 'chat', 'tracker', 'Latest release', 'name', 'repo', 'Release date', 'categories'))))
fields = sorted(list(unique_fields - {'description', 'external links', 'dev home', 'forum', 'home',
'linux-packages', 'developer', 'chat', 'tracker', 'Latest release', 'name',
'repo', 'Release date', 'categories'}))
for field in fields:
content = [entry[field] for entry in entries if field in entry]
# flatten
@ -345,7 +347,9 @@ def clean_lgw_content():
# list for every unique field
print('\nfield contents after')
fields = sorted(list(unique_fields - set(('description', 'external links', 'dev home', 'forum', 'home', 'linux-packages', 'developer', 'chat', 'tracker', 'Latest release', 'name', 'repo', 'Release date', 'categories'))))
fields = sorted(list(unique_fields - {'description', 'external links', 'dev home', 'forum', 'home',
'linux-packages', 'developer', 'chat', 'tracker', 'Latest release', 'name',
'repo', 'Release date', 'categories'}))
for field in fields:
content = [entry[field] for entry in entries if field in entry]
# flatten