Commit eba9ded3e01f6ecf1d5eee88cc56e86fcbf3ebca

Authored by Sergio Oliveira
1 parent 185a151a

allowing to use colab without solr

Showing 1 changed file with 3 additions and 0 deletions   Show diff stats
src/colab/deprecated/solrutils.py
... ... @@ -136,6 +136,9 @@ def select(query, results_per_page=None, page_number=None, sort=None, fields=Non
136 136 set in settings.py.
137 137  
138 138 """
  139 +
  140 + if not settings.SOLR_HOSTNAME or not settings.SOCKS_PORT:
  141 + return {}
139 142  
140 143 data = {
141 144 'q': query,
... ...