move searx.shared.redisdb to searx.redisdb

This commit is contained in:
Alexandre Flament 2022-11-11 21:58:32 +01:00
parent 34e260f88f
commit b971167ced
12 changed files with 16 additions and 24 deletions

View file

@ -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)