mirror of
https://github.com/OpenBB-finance/OpenBB.git
synced 2026-11-13 12:51:49 +00:00
adjustments
This commit is contained in:
@@ -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()
|
||||
|
||||
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user