mirror of
https://github.com/OpenBB-finance/OpenBB.git
synced 2026-10-28 13:01:38 +00:00
openbb is special
This commit is contained in:
@@ -51,7 +51,14 @@ class KeysController(BaseController): # pylint: disable=too-many-public-methods
|
||||
def check_keys_status(self) -> None:
|
||||
"""Check keys status"""
|
||||
for api in tqdm(self.API_LIST, desc="Checking keys status"):
|
||||
self.status_dict[api] = getattr(keys_model, "check_" + str(api) + "_key")()
|
||||
if api == "openbb":
|
||||
self.status_dict[api] = getattr(
|
||||
keys_model, "check_" + str(api) + "_personal_access_token"
|
||||
)()
|
||||
else:
|
||||
self.status_dict[api] = getattr(
|
||||
keys_model, "check_" + str(api) + "_key"
|
||||
)()
|
||||
|
||||
def print_help(self):
|
||||
"""Print help"""
|
||||
|
||||
Reference in New Issue
Block a user