mirror of
https://github.com/searxng/searxng.git
synced 2025-12-22 19:50:00 +00:00
move searx.shared.redisdb to searx.redisdb
This commit is contained in:
@@ -26,8 +26,7 @@ if os.path.isfile(OLD_SETTING):
|
||||
))
|
||||
warnings.warn(msg, DeprecationWarning)
|
||||
|
||||
from searx.shared import redisdb
|
||||
from searx import get_setting
|
||||
from searx import redisdb, get_setting
|
||||
|
||||
if not redisdb.initialize():
|
||||
warnings.warn("can't connect to redis DB at: %s" % get_setting('redis.url'), RuntimeWarning, stacklevel=2)
|
||||
|
||||
Reference in New Issue
Block a user