Skip to content

Commit

Permalink
[#1251] get rid of default previews for types with views
Browse files Browse the repository at this point in the history
  • Loading branch information
kindly committed Mar 11, 2014
1 parent d42aec2 commit 8180ec7
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions ckan/lib/helpers.py
Expand Up @@ -1601,11 +1601,6 @@ def resource_preview(resource, package):
if datapreview.get_preview_plugin(data_dict, return_first=True):
url = url_for(controller='package', action='resource_datapreview',
resource_id=resource['id'], id=package['id'], qualified=True)
elif format_lower in datapreview.direct():
directly = True
url = resource['url']
elif format_lower in datapreview.loadable():
url = resource['url']
else:
return False

Expand Down

0 comments on commit 8180ec7

Please sign in to comment.