Skip to content

Commit

Permalink
[2nd] SNO-31 Correct report views (#143)
Browse files Browse the repository at this point in the history
  • Loading branch information
caseylitton authored Oct 4, 2018
1 parent 7df1a78 commit 77c3862
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 9 deletions.
8 changes: 0 additions & 8 deletions src/snovault/viewconfigs/report.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,14 +47,6 @@ def preprocess_view(self, views=None, search_result_actions=None):
if ('limit' in self._request.GET and self._request.__parent__ is None
and (size is None or size > 1000)):
del self._request.GET['limit']
views = []
report_route = self._request.route_path('report', slash='/')
if len(doc_types) == 1:
views.append({
'href': report_route + self._search_base,
'title': 'View tabular report',
'icon': 'table',
})
# TODO: Fix creating a new instance a SearchView
# We already do this in __init__
res = SearchView(self._context, self._request).preprocess_view(
Expand Down
2 changes: 1 addition & 1 deletion src/snowflakes/viewconfigs/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,4 +38,4 @@ def search(context, request, search_type=None, views=None, return_generator=Fals
@view_config(route_name='report', request_method='GET', permission='search')
def report(context, request):
report = ReportView(context, request)
return report.preprocess_view()
return report.preprocess_view(views=[])

0 comments on commit 77c3862

Please sign in to comment.