Skip to content

Commit

Permalink
pass 'wekeo_url' input to datarequest
Browse files Browse the repository at this point in the history
  • Loading branch information
lforesta committed Oct 14, 2020
1 parent 4efdcbb commit 6589abf
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/eodc_openeo_bindings/wekeo_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -203,9 +203,13 @@ def get_filepaths(wekeo_url: str, username: str, password: str,
data_descriptor = create_data_descriptor(wekeo_data_id, wekeo_var_id, spatial_extent, temporal_extent)

# Create a Data Request job
response = create_datarequest(credentials=credentials, data_descriptor=data_descriptor)
response = create_datarequest(credentials=credentials,
wekeo_url=credentials['wekeo_url'],
data_descriptor=data_descriptor)
while not response.json()['message']:
response = create_datarequest(data_descriptor)
response = create_datarequest(credentials=credentials,
wekeo_url=credentials['wekeo_url'],
data_descriptor=data_descriptor)
job_id = response.json()['jobId']
download_url = credentials['wekeo_url'] + f"/datarequest/jobs/{job_id}/result"

Expand Down

0 comments on commit 6589abf

Please sign in to comment.