Skip to content

Commit

Permalink
[bugfix] in airbus ds see #21
Browse files Browse the repository at this point in the history
  • Loading branch information
clemcazorla committed Jun 28, 2018
1 parent 8bedc3f commit 9858b90
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions eodag/plugins/search/arlas.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ def query(self, product_type, auth=None, **kwargs):
logger.info('Normalizing results')
for feature in results['features']:
if feature[u'properties'][u'state'][u'resources'][u'quicklook'] == True:
quicklook = self.build_quicklook_url()
quicklook = self.build_quicklook_url(feature)
else:
quicklook = None
properties = properties_from_json(feature, self.config['metadata_mapping'])
Expand Down Expand Up @@ -157,6 +157,6 @@ def count_products(self, query_string, auth):
return -1
return response.json()['totalnb']

def build_quicklook_url(self):
def build_quicklook_url(self, product):
"""Build the quicklook download url"""
return os.path.join(self.config['quicklook_endpoint'], self.properties.uid)
return os.path.join(self.config['quicklook_endpoint'], product['properties']['uid'])

0 comments on commit 9858b90

Please sign in to comment.