diff --git a/cads_processing_api_service/auth.py b/cads_processing_api_service/auth.py index a313fa6..a15bf0b 100644 --- a/cads_processing_api_service/auth.py +++ b/cads_processing_api_service/auth.py @@ -111,7 +111,7 @@ def authenticate_user( request_url, headers={ auth_header[0]: auth_header[1], - config.PORTAL_HEADER_NAME: portal_header, # type: ignore + config.PORTAL_HEADER_NAME: portal_header, }, ) if response.status_code in ( diff --git a/cads_processing_api_service/clients.py b/cads_processing_api_service/clients.py index 861dcd6..dfdb58b 100644 --- a/cads_processing_api_service/clients.py +++ b/cads_processing_api_service/clients.py @@ -288,7 +288,9 @@ def get_jobs( List of jobs status information. """ user_uid, _ = auth.authenticate_user(auth_header, portal_header) - portals = [p.strip() for p in portal_header.split(",")] + portals = ( + [p.strip() for p in portal_header.split(",")] if portal_header else None + ) job_filters = { "process_id": processID, "status": status, @@ -405,7 +407,9 @@ def get_job( Job status information. """ user_uid, _ = auth.authenticate_user(auth_header, portal_header) - portals = [p.strip() for p in portal_header.split(",")] + portals = ( + [p.strip() for p in portal_header.split(",")] if portal_header else None + ) try: compute_sessionmaker = db_utils.get_compute_sessionmaker( mode=db_utils.ConnectionMode.read