From 27ecb42b7c1f92a47b04fb2fc92a628678021ed3 Mon Sep 17 00:00:00 2001 From: Mateusz Konieczny <matkoniecz@gmail.com> Date: Thu, 3 Apr 2025 06:06:51 +0200 Subject: [PATCH] skip cases where there is no import nor conflict --- 21_list_import_status.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/21_list_import_status.py b/21_list_import_status.py index 6a06d9a..62ce8ee 100644 --- a/21_list_import_status.py +++ b/21_list_import_status.py @@ -245,6 +245,9 @@ def process_single_dataset(checked_data_sources, atp_code, area): import_judgment = data_extractor_function(entry) # a bit weird place to check that, but it is checked only here as it requires external call # so it is preferable to do it sparingly + if import_judgment['status'] == 'no_import_for_this_key': + # hide already matched entries - show just proposed import entries and failed matching + continue import_judgment = adjust_judgment_for_address_location_mismatch_checked_by_nominatim(entry, import_judgment) extracted['data'].append(entry_to_presentation_object(extracted['key'], entry, import_judgment)) apparently_importable[extracted['key']].append(entry)