mirror of
https://codeberg.org/matkoniecz/list_how_openstreetmap_can_be_improved_with_alltheplaces_data.git
synced 2025-05-13 05:03:09 +02:00
fix listing matches
This commit is contained in:
parent
8af6ef3569
commit
520894e559
1 changed files with 2 additions and 2 deletions
|
@ -213,11 +213,11 @@ def process_single_dataset(checked_data_sources, atp_code, area):
|
|||
for entry in entries:
|
||||
if entry.osm_link in skipped_osm_cases():
|
||||
continue
|
||||
if entry.osm_link == None:
|
||||
match_judgment = thorough_match_mismatch_check(entry)
|
||||
if entry.osm_link == None or match_judgment == None:
|
||||
match_judgment = {'status': 'it_is_not_matching', 'mismatching_key_list': ['no match found in OSM']}
|
||||
extracted['data'].append(entry_to_presentation_object(extracted['key'], entry, match_judgment))
|
||||
continue
|
||||
match_judgment = thorough_match_mismatch_check(entry)
|
||||
if links_per_osm_object[entry.osm_link] > 1:
|
||||
for extracted in checked_data_sources:
|
||||
match_judgment = {'status': 'it_is_not_matching', 'mismatching_key_list': ['multiple ATP matched to ' + entry.osm_link]}
|
||||
|
|
Loading…
Add table
Reference in a new issue