aboutsummaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorBonfaceKilz2021-10-04 13:40:06 +0300
committerBonfaceKilz2021-10-04 13:46:25 +0300
commitc5215d1ed224480a274476933beded9d2ba7f7dc (patch)
tree3d78355fc46706fe420229f88c7a2a0f9ba3a784 /scripts
parentdf487791c91a5aa1a9a3b4e1a6c9ce17a58eafe6 (diff)
downloadgenenetwork2-c5215d1ed224480a274476933beded9d2ba7f7dc.tar.gz
Decode redis response by default
Diffstat (limited to 'scripts')
-rw-r--r--scripts/authentication/group.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/scripts/authentication/group.py b/scripts/authentication/group.py
index b89bc3ec..265e8664 100644
--- a/scripts/authentication/group.py
+++ b/scripts/authentication/group.py
@@ -104,9 +104,8 @@ if __name__ == "__main__":
members = args.members if args.members else None
admins = args.admins if args.admins else None
- REDIS_CONN = redis.Redis()
- USERS = {key.decode(): val.decode()
- for key, val in REDIS_CONN.hgetall("users").items()}
+ REDIS_CONN = redis.Redis(decode_responses=True)
+ USERS = REDIS_CONN.hgetall("users")
if not any([members, admins]):
exit("\nExiting. Please provide a value for "