Skip to content
This repository has been archived by the owner on Jan 28, 2020. It is now read-only.

Commit

Permalink
Added calls to get_conn() where conn is used implicitly.
Browse files Browse the repository at this point in the history
  • Loading branch information
ShawnMilo committed Sep 18, 2015
1 parent 13bcb5e commit 0d948a4
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions search/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -239,6 +239,7 @@ class SearchResults(object):
def __init__(self, search):
"""Get raw search result from Elasticsearch."""
self._search = search
get_conn() # We don't need the return value; just for it to exist.

def count(self):
"""Total records matching the query."""
Expand Down Expand Up @@ -341,6 +342,8 @@ def ensure_vocabulary_mappings(term_info):
if len(term_info) == 0:
return

get_conn() # We don't need the return value; just for it to exist.

# Retrieve current mapping from Elasticsearch.
mapping = Mapping.from_es(index=INDEX_NAME, doc_type=DOC_TYPE)

Expand Down

0 comments on commit 0d948a4

Please sign in to comment.