From 9e19d0f688de44fcb1c84f707711b74a3d4f6115 Mon Sep 17 00:00:00 2001 From: Joseph Cheung Date: Sun, 19 Feb 2023 20:54:08 +0800 Subject: [PATCH] Update webapp.py --- searx/webapp.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/searx/webapp.py b/searx/webapp.py index f9fa16e36..9633b145a 100755 --- a/searx/webapp.py +++ b/searx/webapp.py @@ -737,8 +737,8 @@ def search(): gpt_json = gpt_response.json() if 'choices' in gpt_json: gpt = gpt_json['choices'][0]['text'] - for urls in url_pair: - gpt.replace(urls.key,urls[urls.key]) + for urls in url_pair.keys(): + gpt.replace(urls,url_pair[urls]) if gpt and gpt!="": gptbox = { 'infobox': 'New Search',