Skip to content

Commit

Permalink
[hotfix] ENCD-3736 Fix pop error (#2099)
Browse files Browse the repository at this point in the history
  • Loading branch information
caseylitton authored Dec 20, 2017
1 parent f767ec5 commit e211b3f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/encoded/visualization.py
Original file line number Diff line number Diff line change
Expand Up @@ -2329,10 +2329,10 @@ def object_is_visualizable(
files = obj.get('files', [])
browsers = browsers_available(obj.get('status', 'none'), assemblies,
obj.get('@type', []), files=files)
if exclude_quickview:
browsers.pop('quickview', None)

return len(browsers) > 0
if exclude_quickview and 'quickview' in browsers:
return len(browsers) > 1
else:
return len(browsers) > 0


def vis_format_url(browser, path, assembly, position=None):
Expand Down

0 comments on commit e211b3f

Please sign in to comment.