mirror of
https://github.com/netzbegruenung/green-spider.git
synced 2024-05-06 02:43:42 +02:00
Set stable sorting for all arrays
to minimize the diffs between results submissions
This commit is contained in:
parent
8281b2b460
commit
5438818043
|
@ -160,7 +160,7 @@ def check_site(url):
|
|||
|
||||
processed_hostnames.append(record)
|
||||
|
||||
result['hostnames'] = processed_hostnames
|
||||
result['hostnames'] = sorted(processed_hostnames, key=lambda hn: hn['input_hostname'])
|
||||
|
||||
checked_urls = []
|
||||
for item in processed_hostnames:
|
||||
|
@ -191,8 +191,8 @@ def check_site(url):
|
|||
|
||||
checked_urls.append(record)
|
||||
|
||||
result['resolvable_urls'] = checked_urls
|
||||
result['canonical_urls'] = reduce_urls(checked_urls)
|
||||
result['resolvable_urls'] = sorted(checked_urls, key=lambda url: url['url'])
|
||||
result['canonical_urls'] = sorted(reduce_urls(checked_urls))
|
||||
|
||||
# Deeper test for the remaining (canonical) URL(s)
|
||||
for check_url in result['canonical_urls']:
|
||||
|
@ -225,6 +225,9 @@ def check_site(url):
|
|||
|
||||
result['urlchecks'].append(check)
|
||||
|
||||
|
||||
result['urlchecks'] = sorted(result['urlchecks'], key=lambda url: url['url'])
|
||||
|
||||
return result
|
||||
|
||||
|
||||
|
|
18347
webapp/dist/data/spider_result.json
vendored
18347
webapp/dist/data/spider_result.json
vendored
File diff suppressed because it is too large
Load diff
Loading…
Reference in a new issue