|
@@ -122,7 +122,7 @@ def index():
|
122
|
122
|
if not request.args and not request.form:
|
123
|
123
|
return render(
|
124
|
124
|
'index.html',
|
125
|
|
- client=settings['client']
|
|
125
|
+ client=settings.get('client', None)
|
126
|
126
|
)
|
127
|
127
|
|
128
|
128
|
try:
|
|
@@ -130,7 +130,7 @@ def index():
|
130
|
130
|
except:
|
131
|
131
|
return render(
|
132
|
132
|
'index.html',
|
133
|
|
- client=settings['client']
|
|
133
|
+ client=settings.get('client', None)
|
134
|
134
|
)
|
135
|
135
|
|
136
|
136
|
# TODO moar refactor - do_search integration into Search class
|
|
@@ -212,7 +212,7 @@ def index():
|
212
|
212
|
return render(
|
213
|
213
|
'results.html',
|
214
|
214
|
results=search.results,
|
215
|
|
- client=settings['client'],
|
|
215
|
+ client=settings.get('client', None),
|
216
|
216
|
q=search.request_data['q'],
|
217
|
217
|
selected_categories=search.categories,
|
218
|
218
|
paging=search.paging,
|