about summary refs log tree commit diff
path: root/gn3/case_attributes.py
diff options
context:
space:
mode:
authorFrederick Muriuki Muriithi2025-02-28 12:44:55 -0600
committerFrederick Muriuki Muriithi2025-02-28 12:44:55 -0600
commitef1436bca390ee916b7119036ab2d3de8d1344fb (patch)
tree8ed0197669d51d2f825080bfbda10e35fa2403aa /gn3/case_attributes.py
parent4edc4450e6fe578212600ad9733f0fa6eb3ffc9f (diff)
downloadgenenetwork3-ef1436bca390ee916b7119036ab2d3de8d1344fb.tar.gz
Fix linting errors.
Diffstat (limited to 'gn3/case_attributes.py')
-rw-r--r--gn3/case_attributes.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/gn3/case_attributes.py b/gn3/case_attributes.py
index 2c878d2..2a456bd 100644
--- a/gn3/case_attributes.py
+++ b/gn3/case_attributes.py
@@ -78,7 +78,8 @@ def required_access(
                 # this section fetches the resource ID from the auth server
                 urljoin(current_app.config["AUTH_SERVER_URL"],
                         "auth/resource/populations/resource-id"
-                        f"/{__species_id__(conn)}/{inbredset_id}"))
+                        f"/{__species_id__(conn)}/{inbredset_id}"),
+                timeout=300)
             if result.status_code == 200:
                 resource_id = result.json()["resource-id"]
                 auth = requests.post(
@@ -87,7 +88,8 @@ def required_access(
                     urljoin(current_app.config["AUTH_SERVER_URL"],
                             "auth/resource/authorisation"),
                     json={"resource-ids": [resource_id]},
-                    headers={"Authorization": f"Bearer {token['access_token']}"})
+                    headers={"Authorization": f"Bearer {token['access_token']}"},
+                    timeout=300)
                 if auth.status_code == 200:
                     privs = tuple(priv["privilege_id"]
                                   for role in auth.json()[resource_id]["roles"]