1
0
Fork 0

fix listing matches

This commit is contained in:
Mateusz Konieczny 2025-03-05 07:06:23 +01:00
parent 8af6ef3569
commit 520894e559

View file

@ -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]}