wikijs
This commit is contained in:
@ -52,13 +52,15 @@ def response(resp):
|
||||
try:
|
||||
url = result['path']
|
||||
title = result['title']
|
||||
content = result['description']
|
||||
locale = result['locale']
|
||||
except:
|
||||
continue
|
||||
results.append(
|
||||
{
|
||||
'url': host + to_string(url),
|
||||
'url': host + '/' + to_string(locale) + '/' + to_string(url),
|
||||
'title': to_string(title),
|
||||
'content': '',
|
||||
'content': to_string(content),
|
||||
}
|
||||
)
|
||||
for suggestion in search_result['suggestions']:
|
||||
|
Reference in New Issue
Block a user