diff options
| author | Frederick Muriuki Muriithi | 2026-05-20 09:39:13 -0500 |
|---|---|---|
| committer | Frederick Muriuki Muriithi | 2026-05-20 09:40:34 -0500 |
| commit | d2f780b931b9a7d4a99578c6ba4dc1f110cda1d1 (patch) | |
| tree | 0621d132baaf333400b6907ab668ef4636a1427f /gn_auth/auth/authorisation | |
| parent | 30db52a2751f67f34fee064c2788315e50d7d0cb (diff) | |
| download | gn-auth-d2f780b931b9a7d4a99578c6ba4dc1f110cda1d1.tar.gz | |
Initialise initial value used in reduce.
To avoid failures later due to missing keys, we initialise the initial value used in reduce to a dict with empty tuples for every key.
Diffstat (limited to 'gn_auth/auth/authorisation')
| -rw-r--r-- | gn_auth/auth/authorisation/data/views.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gn_auth/auth/authorisation/data/views.py b/gn_auth/auth/authorisation/data/views.py index f8f4033..502c802 100644 --- a/gn_auth/auth/authorisation/data/views.py +++ b/gn_auth/auth/authorisation/data/views.py @@ -116,7 +116,7 @@ def authorisation() -> Response: (dset.strip(), trt.strip()) for dset, trt in (trtstr.split("::") for trtstr in request_json().get("traits", []))), - {}) + {key: tuple() for key in ("Publish", "ProbeSet", "Geno", "Temp")}) db_uri = app.config["AUTH_DB"] user = User(uuid.uuid4(), "anon@ymous.user", "Anonymous User") |
