mirror of
https://github.com/OpenBB-finance/OpenBB.git
synced 2026-10-27 12:40:35 +00:00
[Feature] FOMC Documents With Workspace Multi-File Viewer Widget (#7065)
* add endpoint for FOMC documents with multi-file viewer widget in Workspace * handle basic cli * fix router_testers * lint * lint * lint * add widget to default_templates
This commit is contained in:
@@ -89,7 +89,9 @@ class Registry:
|
||||
if hasattr(obbject, "results") and obbject.results:
|
||||
data_schema = (
|
||||
obbject.results[0].model_json_schema()
|
||||
if obbject.results and isinstance(obbject.results, list)
|
||||
if obbject.results
|
||||
and isinstance(obbject.results, list)
|
||||
and hasattr(obbject.results[0], "model_json_schema")
|
||||
else ""
|
||||
)
|
||||
if data_schema and "title" in data_schema:
|
||||
|
||||
@@ -34,7 +34,7 @@ class PlatformController(BaseController):
|
||||
|
||||
CHOICES_GENERATION = True
|
||||
|
||||
def __init__(
|
||||
def __init__( # pylint: disable=too-many-positional-arguments
|
||||
self,
|
||||
name: str,
|
||||
parent_path: List[str],
|
||||
@@ -174,6 +174,9 @@ class PlatformController(BaseController):
|
||||
title = f"{self.PATH}{translator.func.__name__}"
|
||||
|
||||
if obbject:
|
||||
if isinstance(obbject, list):
|
||||
obbject = OBBject(results=obbject)
|
||||
|
||||
if isinstance(obbject, OBBject):
|
||||
if (
|
||||
session.max_obbjects_exceeded()
|
||||
|
||||
Reference in New Issue
Block a user