mirror of
https://github.com/searxng/searxng.git
synced 2025-07-13 16:29:17 +02:00
move searx.shared.redisdb to searx.redisdb
This commit is contained in:
parent
34e260f88f
commit
b971167ced
12 changed files with 16 additions and 24 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue