diff options
author | Igor Radovanovic <74266147+IgorWounds@users.noreply.github.com> | 2024-02-02 15:39:58 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-02-02 14:39:58 +0000 |
commit | 6c2aa62a0f2581ed7c1ab7742adbd0d4796d076b (patch) | |
tree | d793f15958fde0efaf808d7da0c2440829ebc896 | |
parent | c9f1aec2b3fdc683d7e373029d5172017abc582c (diff) |
[BugFix] - Remove duplicate code (#6025)
Co-authored-by: Pratyush Shukla <ps4534@nyu.edu>
-rw-r--r-- | openbb_platform/core/openbb_core/app/command_runner.py | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/openbb_platform/core/openbb_core/app/command_runner.py b/openbb_platform/core/openbb_core/app/command_runner.py index 982c389ab11..171ede70316 100644 --- a/openbb_platform/core/openbb_core/app/command_runner.py +++ b/openbb_platform/core/openbb_core/app/command_runner.py @@ -353,21 +353,6 @@ class StaticCommandRunner: if Env().DEBUG_MODE: raise OpenBBError(e) from e - try: - if ( - obbject.results - and execution_context.user_settings.preferences.field_order - ): - if isinstance(obbject.results, list): - fields = obbject.results[0].model_dump().keys() - else: - fields = obbject.results.model_dump().keys() - - obbject.extra["field_order"] = list(fields) - except Exception as e: - if Env().DEBUG_MODE: - raise OpenBBError(e) from e - except Exception as e: raise OpenBBError(e) from e finally: |