Skip to content

Commit

Permalink
Merge pull request #53 from mzaglia/b-0.8.0
Browse files Browse the repository at this point in the history
Fixing item without quicklook
  • Loading branch information
mzaglia committed Jul 6, 2020
2 parents 658b93e + f5ec6b6 commit 19d942f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion bdc_stac/data.py
Original file line number Diff line number Diff line change
Expand Up @@ -330,7 +330,9 @@ def make_geojson(items, links):
assets = get_assets(i.item)
feature['assets'] = dict()
asset_path = os.getenv('FILE_ROOT')
feature['assets']['thumbnail'] = {'href': asset_path + i.quicklook}

if i.quicklook:
feature['assets']['thumbnail'] = {'href': asset_path + i.quicklook}

for a in assets:
feature['assets'][a.band] = {'href': asset_path + a.url}
Expand Down

0 comments on commit 19d942f

Please sign in to comment.