From 6068ea6baa7f620a93d84fc63497229bafa34fd2 Mon Sep 17 00:00:00 2001 From: Joseph Cheung Date: Sun, 19 Feb 2023 20:42:43 +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 2614babd4..3bacfccf9 100755 --- a/searx/webapp.py +++ b/searx/webapp.py @@ -709,7 +709,7 @@ def search(): if res['content'] == '': continue new_url = 'https://url'+str(len(url_pair)) url_pair[new_url] = res['url'] - tmp_prompt = url_pair +'\n'+ res['url']['title'] +'\n'+ res['url']['content'] + tmp_prompt = new_url +'\n'+ res['url']['title'] +'\n'+ res['url']['content'] if len(prompt)+len(tmp_prompt)<=1500: prompt += tmp_prompt +'\n' if prompt != "":