Skip to content

Commit

Permalink
fix download
Browse files Browse the repository at this point in the history
  • Loading branch information
sebhahn committed Dec 11, 2023
1 parent 6078f9c commit f6bbb20
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/ascat/download/connectors.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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']:
Expand Down

0 comments on commit f6bbb20

Please sign in to comment.