From ef1436bca390ee916b7119036ab2d3de8d1344fb Mon Sep 17 00:00:00 2001 From: Frederick Muriuki Muriithi Date: Fri, 28 Feb 2025 12:44:55 -0600 Subject: Fix linting errors. --- gn3/case_attributes.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'gn3/case_attributes.py') 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"] -- cgit 1.4.1