Skip to content

Commit

Permalink
Remove 'top results' from search results.
Browse files Browse the repository at this point in the history
  • Loading branch information
ahaith committed May 12, 2016
1 parent 9ec0063 commit e5e04d9
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion talks/events_search/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,10 @@ class SearchUpcomingView(SearchView):
def extra_context(self):
extra = super(SearchUpcomingView, self).extra_context()

extra['top_results'] = self.get_results()[:5]
# Removing top results for now, as possibly unhelpful to users. Can reinstate later if desired by uncommenting this line.
# extra['top_results'] = self.get_results()[:5]


for top_event in extra['top_results']:
ox_date = date_to_oxford_date(top_event.start)
comps = ox_date.components
Expand Down

0 comments on commit e5e04d9

Please sign in to comment.