Update octosuite.py

Added f-string to the Organisation profile Tree.
This commit is contained in:
Richard Mwewa
2023-04-21 18:42:53 +02:00
committed by GitHub
parent 595dcc5aac
commit d1e9932967

View File

@@ -545,7 +545,7 @@ class Octosuite:
if response.status_code == 404:
xprint(f"{NEGATIVE} {org_not_found.format(organization)}")
elif response.status_code == 200:
org_profile_tree = Tree("\n{response.json()['name']}")
org_profile_tree = Tree(f"\n{response.json()['name']}")
for attr in self.org_attrs:
org_profile_tree.add(f"{self.org_attr_dict[attr]}: {response.json()[attr]}")
xprint(org_profile_tree)