From 1f0b063e741ed58e1e4514ea984b3ffd8cb7b919 Mon Sep 17 00:00:00 2001 From: hjoaquim Date: Thu, 25 Jan 2024 11:05:30 +0000 Subject: [PATCH] filter functions not implemented in the module --- .../charting/openbb_charting/utils/helpers.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/openbb_platform/obbject_extensions/charting/openbb_charting/utils/helpers.py b/openbb_platform/obbject_extensions/charting/openbb_charting/utils/helpers.py index 2b266b5713e..38b53dbf531 100644 --- a/openbb_platform/obbject_extensions/charting/openbb_charting/utils/helpers.py +++ b/openbb_platform/obbject_extensions/charting/openbb_charting/utils/helpers.py @@ -10,7 +10,11 @@ def get_charting_functions() -> List[str]: implemented_functions = [] for name, obj in getmembers(charting_router, isfunction): - if not name.startswith("_") and "NotImplementedError" not in getsource(obj): + if ( + obj.__module__ == charting_router.__name__ + and not name.startswith("_") + and "NotImplementedError" not in getsource(obj) + ): implemented_functions.append(name) return implemented_functions