diff options
author | Arun Isaac | 2021-11-10 15:55:45 +0530 |
---|---|---|
committer | BonfaceKilz | 2021-11-13 08:00:40 +0300 |
commit | 83f0e5c2955595de195a6de4a9aa7feeb94df9bb (patch) | |
tree | fbe7622ddfaa403b98ae5e46d4acd713d2040a78 | |
parent | 0059de6c028996c9b21a833f186ba7df4899fa2d (diff) | |
download | genenetwork3-83f0e5c2955595de195a6de4a9aa7feeb94df9bb.tar.gz |
Reformat condition on a single line.
* gn3/authentication.py (get_user_info_by_key): Reformat so that condition is
on a single line.
-rw-r--r-- | gn3/authentication.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/gn3/authentication.py b/gn3/authentication.py index 1ccffcc..7384df0 100644 --- a/gn3/authentication.py +++ b/gn3/authentication.py @@ -132,8 +132,7 @@ def get_user_info_by_key(key: str, value: str, if key != "user_id": for uuid, user_info in conn.hgetall("users").items(): user_info = json.loads(user_info) - if (key in user_info and - user_info.get(key) == value): + if (key in user_info and user_info.get(key) == value): user_info["user_id"] = uuid return user_info elif key == "user_id": |