wikijs
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/tag Build is passing

This commit is contained in:
mol
2023-12-06 14:14:41 +08:00
parent 4fe8b8c8a8
commit a6dfb10053
2 changed files with 5 additions and 3 deletions

View File

@ -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']: