We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e9d6bfb commit ccfb079Copy full SHA for ccfb079
backend/PyMatcha/__init__.py
@@ -31,7 +31,7 @@
31
from PyMatcha.utils.logging import setup_logging
32
from PyMatcha.utils.tables import create_tables
33
from pymysql.cursors import DictCursor
34
-from redis import Redis
+from redis import StrictRedis
35
36
PYMATCHA_ROOT = os.path.join(os.path.dirname(__file__), "../..") # refers to application_top
37
dotenv_path = os.path.join(PYMATCHA_ROOT, ".env")
@@ -149,7 +149,7 @@ def expired_token_callback(expired_token):
149
logging.debug("Configuring mail")
150
mail = Mail(application)
151
152
-redis = Redis(
+redis = StrictRedis(
153
host=os.getenv("REDIS_HOST") if not os.getenv("IS_DOCKER_COMPOSE") else "redis",
154
port=os.getenv("REDIS_PORT", 6379),
155
decode_responses=True,
0 commit comments