adjustments

This commit is contained in:
hjoaquim
2024-02-13 14:54:08 +00:00
parent 4e96299388
commit e90eb4388d
2 changed files with 17 additions and 0 deletions

View File

@@ -1,4 +1,5 @@
"""Platform Equity Controller."""
__docformat__ = "numpy"
import logging
@@ -32,6 +33,8 @@ class PlatformController(BaseController):
super().__init__(queue)
self._name = name
self.translators = translators
if translators:
self._generate_commands(translators=translators)
self.CHOICES_COMMANDS = translators.keys()

View File

@@ -141,8 +141,22 @@ class TerminalController(BaseController):
self.update_success = False
self._generate_platform_commands()
self.update_runtime_choices()
def _generate_platform_commands(self):
from openbb import obb
# 1. add menu to CHOICES_MENU
# 2. Inject mt.add_menu() into print_help()
# from openbb_terminal.poc_platform_equity_controller import (
# PocPlatformEquityController,
# )
# self.queue = self.load_class(PocPlatformEquityController, "equity", self.queue)
def update_runtime_choices(self):
"""Update runtime choices."""
if session and get_current_user().preferences.USE_PROMPT_TOOLKIT: