use self._config instead of app.config

This commit is contained in:
Sander
2022-03-10 14:59:17 +02:00
parent 80f39ec79b
commit a82799d358
+1 -1
View File
@@ -229,7 +229,7 @@ class RedisSessionInterface(SessionInterface):
""" """
if self.backend is None: if self.backend is None:
import aioredis import aioredis
uri = app.config.get('SESSION_URI', 'redis://localhost') uri = self._config.get('SESSION_URI', 'redis://localhost')
self.backend = await aioredis.from_url( self.backend = await aioredis.from_url(
uri, encoding="utf-8", decode_responses=True uri, encoding="utf-8", decode_responses=True
) )