mirror of
https://github.com/searxng/searxng.git
synced 2024-11-19 19:00:10 +01:00
[fix] rewrite missing variable
This commit is contained in:
parent
96f182d75d
commit
88dfee858e
@ -27,5 +27,5 @@ def on_result(request, search, result):
|
|||||||
if doi.endswith(suffix):
|
if doi.endswith(suffix):
|
||||||
doi = doi[:-len(suffix)]
|
doi = doi[:-len(suffix)]
|
||||||
result['url'] = 'http://doai.io/' + doi
|
result['url'] = 'http://doai.io/' + doi
|
||||||
result['parsed_url'] = urlparse(ctx['result']['url'])
|
result['parsed_url'] = urlparse(result['url'])
|
||||||
return True
|
return True
|
||||||
|
Loading…
Reference in New Issue
Block a user