From 6c1759549c1bf0d69dc768041d3a02dee2d05cf5 Mon Sep 17 00:00:00 2001 From: Seting-dev Date: Thu, 15 May 2025 17:17:33 +0300 Subject: [PATCH] edit data pools api --- data_pools_api.py | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/data_pools_api.py b/data_pools_api.py index 2e5e6ce..b3f2987 100644 --- a/data_pools_api.py +++ b/data_pools_api.py @@ -14,13 +14,10 @@ def data_pools(base_url , api_key): #output data pool info print(f"\nData pools total: {data_pools['count']}") print("-" * 44) for x in results_data_pools_info: - print(" "*14,"Data pool info") - print(f"\nName: {x['verbose_name']}") + print(f"\nData pool: {x['verbose_name']} ({x['status']})") + print(f"type: {x['type']} | Used: {round((x['free_space']/1024), 1)} Gb/{round((x['size'] / 1024), 1)} Gb") print(f"UID: {x['id']}") - print(f"type: {x['type']}") - print(f"status: {x['status']}") - print(f"size: {round((x['size'] / 1024), 1)}Gb") print("-" * 44) else: - print(f"Failed to retrieve data {response.status_code}") \ No newline at end of file + print(f"Failed to retrieve data {response.status_code} ") \ No newline at end of file