fix bug: AttributeError: 'module' object has no attribute 'StrictRedis'

Brightcells преди 8 години
родител
ревизия
ae502c940d
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      pai2/func_settings.py

+ 1 - 1
pai2/func_settings.py

@@ -13,4 +13,4 @@ def redis_conf(conf):
13 13
 
14 14
 
15 15
 def redis_connect(conf):
16
-    return redis.StrictRedis(connection_pool=redis.ConnectionPool(**redis_conf(conf)))
16
+    return redis.StrictRedisExtensions(connection_pool=redis.ConnectionPool(**redis_conf(conf)))