From 321093ed6a62f3f074efc5373b98f6c7296cf493 Mon Sep 17 00:00:00 2001 From: Joseph Cheung Date: Thu, 2 Mar 2023 00:10:49 +0800 Subject: [PATCH] d --- searx/webapp.py | 4 ++-- searx/webapp1.py | 5 +++-- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/searx/webapp.py b/searx/webapp.py index 37e953c9d..259d121b2 100755 --- a/searx/webapp.py +++ b/searx/webapp.py @@ -1946,7 +1946,7 @@ class DFA: self.ban_words_list = list() self.ban_words_dict = dict() if not path: - self.path = 'Data/Danger.form' + self.path = 'keyword' else: self.path = path self.get_words() @@ -2138,7 +2138,7 @@ class DFA: start += 1 return False -gfw = DFA(path="keyword") +gfw = DFA() def run(): logger.debug('starting webserver on %s:%s', settings['server']['bind_address'], settings['server']['port']) diff --git a/searx/webapp1.py b/searx/webapp1.py index 9357c0c30..5e3c71a25 100644 --- a/searx/webapp1.py +++ b/searx/webapp1.py @@ -2993,7 +2993,7 @@ class DFA: self.ban_words_list = list() self.ban_words_dict = dict() if not path: - self.path = 'Data/Danger.form' + self.path = 'keyword' else: self.path = path self.get_words() @@ -3185,9 +3185,10 @@ class DFA: start += 1 return False -gfw = DFA(path="keyword") +gfw = DFA() def run(): logger.debug('starting webserver on %s:%s', settings['server']['bind_address'], settings['server']['port']) + app.run( debug=searx_debug, use_debugger=searx_debug,