From c313c9f48e50a60abc4416513adef9eaec1385cc Mon Sep 17 00:00:00 2001 From: luxtiasco <79135227+luxtiasco@users.noreply.github.com> Date: Mon, 20 Feb 2023 02:04:04 +0800 Subject: [PATCH] Update webapp.py --- searx/webapp.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/searx/webapp.py b/searx/webapp.py index 7d5a69eb4..7ce02fc79 100755 --- a/searx/webapp.py +++ b/searx/webapp.py @@ -709,7 +709,7 @@ def search(): if 'url' not in res: continue if 'content' not in res: continue if res['content'] == '': continue - new_url = 'https://url'+str(len(url_pair)) + new_url = 'https://url'+str(len(url_pair)+1) url_pair[new_url] = res['url'] tmp_prompt = res['title'] +'\n'+ res['content'] + '\n' + new_url +'\n' if len(prompt)+len(tmp_prompt)<=1500: