From b6fd62d5414b154527b14a25796e94d0b9be1de2 Mon Sep 17 00:00:00 2001 From: Benjamin Kreuscher Date: Mon, 10 Jul 2023 23:11:53 +0200 Subject: [PATCH] [FIX] Log calculation of border countries based on argument - and not based on the countries to process. These can also be 2 in case of a XY coordinate containing two countries --- wahoomc/osm_maps_functions.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/wahoomc/osm_maps_functions.py b/wahoomc/osm_maps_functions.py index c975f530..59dc57bb 100644 --- a/wahoomc/osm_maps_functions.py +++ b/wahoomc/osm_maps_functions.py @@ -133,9 +133,8 @@ def log_border_countries(self): for country in self.border_countries: log.info('+ Involved country: %s', country) - # input can be only one country, if there are more than one, - # border countries must be selected - if len(self.border_countries) > 1: + # border countries should be processed. Log it. + if self.process_border_countries: log.info('+ Border countries will be processed') def get_downloader(self):