From d1e9932967cbf421aa220963b501bccf02694929 Mon Sep 17 00:00:00 2001 From: Richard Mwewa <74001397+rly0nheart@users.noreply.github.com> Date: Fri, 21 Apr 2023 18:42:53 +0200 Subject: [PATCH] Update octosuite.py Added f-string to the Organisation profile Tree. --- octosuite/octosuite.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/octosuite/octosuite.py b/octosuite/octosuite.py index 5641888..c758fb0 100644 --- a/octosuite/octosuite.py +++ b/octosuite/octosuite.py @@ -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)