mirror of
https://github.com/Screenly/Anthias.git
synced 2026-04-30 19:35:16 -04:00
Have the Redis connection decode the responses (via GET) by default.
- Doing so, responses will be returned as `str` instead of `bytes`.
This commit is contained in:
@@ -355,7 +355,7 @@ def generate_perfect_paper_password(pw_length=10, has_symbols=True):
|
||||
|
||||
|
||||
def connect_to_redis():
|
||||
return redis.Redis(host='redis', port=6379, db=0)
|
||||
return redis.Redis(host='redis', decode_responses=True, port=6379, db=0)
|
||||
|
||||
def is_docker():
|
||||
return os.path.isfile('/.dockerenv')
|
||||
|
||||
Reference in New Issue
Block a user