mirror of https://github.com/searxng/searxng.git
fix little bug to allow webapp.py without client var
This commit is contained in:
parent
c8cf95aa56
commit
71c6124f7b
|
@ -122,7 +122,7 @@ def index():
|
||||||
if not request.args and not request.form:
|
if not request.args and not request.form:
|
||||||
return render(
|
return render(
|
||||||
'index.html',
|
'index.html',
|
||||||
client=settings['client']
|
client=settings.get('client', None)
|
||||||
)
|
)
|
||||||
|
|
||||||
try:
|
try:
|
||||||
|
@ -130,7 +130,7 @@ def index():
|
||||||
except:
|
except:
|
||||||
return render(
|
return render(
|
||||||
'index.html',
|
'index.html',
|
||||||
client=settings['client']
|
client=settings.get('client', None)
|
||||||
)
|
)
|
||||||
|
|
||||||
# TODO moar refactor - do_search integration into Search class
|
# TODO moar refactor - do_search integration into Search class
|
||||||
|
@ -212,7 +212,7 @@ def index():
|
||||||
return render(
|
return render(
|
||||||
'results.html',
|
'results.html',
|
||||||
results=search.results,
|
results=search.results,
|
||||||
client=settings['client'],
|
client=settings.get('client', None),
|
||||||
q=search.request_data['q'],
|
q=search.request_data['q'],
|
||||||
selected_categories=search.categories,
|
selected_categories=search.categories,
|
||||||
paging=search.paging,
|
paging=search.paging,
|
||||||
|
|
Loading…
Reference in New Issue