From 59d6eb9ed94eb2ca9d33be7206d9d04efe74a2b7 Mon Sep 17 00:00:00 2001 From: jonathan Date: Mon, 19 Aug 2024 13:50:16 +0300 Subject: [PATCH] Edity script --- src/shared/clients/jit.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/shared/clients/jit.py b/src/shared/clients/jit.py index 348b2b6..8d8dc94 100644 --- a/src/shared/clients/jit.py +++ b/src/shared/clients/jit.py @@ -70,12 +70,12 @@ def _handle_resoponse(response, existing_teams): existing_teams = [] # Check if the request was successful if response.status_code == 200: - logger.info(f'Response: {response.json()['metadata']}') + logger.info(f'Response: {response.json()["metadata"]}') after = _handle_resoponse(response, existing_teams) while after: response = requests.get( f"{url}&after={after}", headers=headers) - logger.info(f'Response: {response.json()['metadata']}') + logger.info(f'Response: {response.json()["metadata"]}') if response.status_code == 200: after = _handle_resoponse(response, existing_teams) logger.info(f'Afer: {after}')