Skip to content

Commit

Permalink
- Fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
afabiani committed Jul 27, 2018
1 parent 2a17f20 commit 8734dfe
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions geonode/utils.py
Expand Up @@ -306,11 +306,10 @@ def layer_from_viewer_config(map_id, model, layer, source, ordering):
# We don't want to hardcode 'access_token' into the storage
styles = []
if 'capability' in layer_cfg:
capability = layer_cfg['capability']
if 'styles' in capability:
styles = capability['styles']
for style in styles:
if 'name' in styles:
_capability = layer_cfg['capability']
if 'styles' in _capability:
for style in _capability['styles']:
if 'name' in style:
styles.append(style['name'])
if 'legend' in style:
legend = style['legend']
Expand Down

0 comments on commit 8734dfe

Please sign in to comment.