remove unused code and add comment

This commit is contained in:
Diogo Sousa
2023-07-07 10:23:29 +01:00
parent 7e53774b25
commit df6dbf1db6
2 changed files with 6 additions and 15 deletions

View File

@@ -2,7 +2,7 @@
import asyncio
from concurrent.futures import ThreadPoolExecutor
from typing import Callable, Dict
from typing import Callable
def run_async(func: Callable, *args, **kwargs):
@@ -25,7 +25,7 @@ try:
from openbb_sdk_core.app.command_runner import CommandRunnerSession
from openbb_sdk_core.app.model.system_settings import SystemSettings
from openbb_sdk_core.app.model.user_settings import UserSettings
from openbb_sdk_core.app.router import CommandMap
# from openbb_sdk_core.app.router import CommandMap
from openbb_sdk_core.app.static.account import Account
from openbb_sdk_core.app.static.package.MODULE_4ebd0208_8328_5d69_8c44_ec50939c0967 import (
CLASS_4ebd0208_8328_5d69_8c44_ec50939c0967,
@@ -53,8 +53,9 @@ else:
def system(self) -> SystemSettings:
return run_async(get_system_settings)
@property
def providers(self) -> Dict:
return CommandMap().provider_coverage
# This would be a better option to expose provider coverage
# @property
# def providers(self) -> Dict:
# return CommandMap().provider_coverage
app = create_app()

View File

@@ -1,10 +0,0 @@
from openbb_sdk_core.app.router import CommandMap
class Providers:
def __init__(self):
self.cmap = CommandMap()
@property
def coverage(self):
return self.cmap.provider_coverage