Skip to content

Commit

Permalink
code style in arlas see #21
Browse files Browse the repository at this point in the history
  • Loading branch information
clemcazorla committed Jun 28, 2018
1 parent 5b1d884 commit 5b807bf
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion eodag/plugins/search/arlas.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@

import logging
import os

import requests

from eodag.api.product import EOProduct
Expand Down Expand Up @@ -62,7 +63,7 @@ def query(self, product_type, auth=None, **kwargs):
if results['features']:
logger.info('Normalizing results')
for feature in results['features']:
if feature[u'properties'][u'state'][u'resources'][u'quicklook'] == True:
if feature['properties']['state']['resources']['quicklook'] == True:
quicklook = self.build_quicklook_url(feature)
else:
quicklook = None
Expand Down

0 comments on commit 5b807bf

Please sign in to comment.