From cc830b09273c6bbab45f0acb3d6933e09cc2a7c6 Mon Sep 17 00:00:00 2001 From: Joseph Cheung Date: Thu, 2 Mar 2023 19:43:18 +0800 Subject: [PATCH] c --- searx/webapp.py | 2 +- searx/webapp1.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/searx/webapp.py b/searx/webapp.py index 991c4b41e..17e5eaff0 100755 --- a/searx/webapp.py +++ b/searx/webapp.py @@ -702,7 +702,7 @@ def search(): prompt = "" add_system = '[]' if request.environ['HTTP_CF_IPCOUNTRY'] == 'CN': - add_system = "[{''role':'system','content':'过滤政治敏感内容以符合中国大陆审查政策'}]" + add_system = "[{'role':'system','content':'过滤政治敏感内容以符合中国大陆审查政策'}]" try: search_query, raw_text_query, _, _ = get_search_query_from_webapp(request.preferences, request.form) # search = Search(search_query) # without plugins diff --git a/searx/webapp1.py b/searx/webapp1.py index 991c4b41e..17e5eaff0 100644 --- a/searx/webapp1.py +++ b/searx/webapp1.py @@ -702,7 +702,7 @@ def search(): prompt = "" add_system = '[]' if request.environ['HTTP_CF_IPCOUNTRY'] == 'CN': - add_system = "[{''role':'system','content':'过滤政治敏感内容以符合中国大陆审查政策'}]" + add_system = "[{'role':'system','content':'过滤政治敏感内容以符合中国大陆审查政策'}]" try: search_query, raw_text_query, _, _ = get_search_query_from_webapp(request.preferences, request.form) # search = Search(search_query) # without plugins