From 7f5fa15b8f396dd075d120b57eaeaeaed545ccdc Mon Sep 17 00:00:00 2001 From: Joseph Cheung Date: Wed, 8 Mar 2023 00:40:29 +0800 Subject: [PATCH] c --- searx/webapp.py | 16 ++++++++-------- searx/webapp1.py | 16 ++++++++-------- 2 files changed, 16 insertions(+), 16 deletions(-) diff --git a/searx/webapp.py b/searx/webapp.py index a10678dc1..1e6632d60 100755 --- a/searx/webapp.py +++ b/searx/webapp.py @@ -831,15 +831,15 @@ def search(): # return index_error(output_format, gettext('No item found')), 500 results.remove(res) except:pass - threads = [] - for result in results: - t = threading.Thread(target=process_result, args=(result,)) - t.start() - threads.append(t) + # threads = [] + # for result in results: + # t = threading.Thread(target=process_result, args=(result,)) + # t.start() + # threads.append(t) - # 等待所有线程执行完毕 - for t in threads: - t.join() + # # 等待所有线程执行完毕 + # for t in threads: + # t.join() for res in results: if 'engine' in res and res['engine'] == 'twitter': try: diff --git a/searx/webapp1.py b/searx/webapp1.py index 8cf0219b6..1e69fd713 100644 --- a/searx/webapp1.py +++ b/searx/webapp1.py @@ -831,15 +831,15 @@ def search(): # return index_error(output_format, gettext('No item found')), 500 results.remove(res) except:pass - threads = [] - for result in results: - t = threading.Thread(target=process_result, args=(result,)) - t.start() - threads.append(t) + # threads = [] + # for result in results: + # t = threading.Thread(target=process_result, args=(result,)) + # t.start() + # threads.append(t) - # 等待所有线程执行完毕 - for t in threads: - t.join() + # # 等待所有线程执行完毕 + # for t in threads: + # t.join() for res in results: if 'engine' in res and res['engine'] == 'twitter': try: