From f6bbb20fa14fe67ea3052145f887464d5d403324 Mon Sep 17 00:00:00 2001 From: Sebastian Hahn Date: Mon, 11 Dec 2023 11:48:10 +0100 Subject: [PATCH] fix download --- src/ascat/download/connectors.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ascat/download/connectors.py b/src/ascat/download/connectors.py index 9206dcaa..980c54fb 100644 --- a/src/ascat/download/connectors.py +++ b/src/ascat/download/connectors.py @@ -383,7 +383,7 @@ def download(self, product, local_path, start_date, end_date, items_per_page = 10 all_found_data_sets = [] - while dataset_parameters['si'] < found_data_sets['properties']['totalResults']: + while dataset_parameters['si'] < found_data_sets['totalResults']: response = requests.get(url, dataset_parameters) found_data_sets = response.json() all_found_data_sets.append(found_data_sets) @@ -397,7 +397,7 @@ def download(self, product, local_path, start_date, end_date, count = 0 if all_found_data_sets: print('Found {} data sets'.format( - found_data_sets['properties']['totalResults'])) + found_data_sets['totalResults'])) for found_data_sets in all_found_data_sets: for selected_data_set in found_data_sets['features']: