diff --git a/openbb_terminal/core/plots/plotly_helper.py b/openbb_terminal/core/plots/plotly_helper.py index a28b47975f1..68fb219d311 100644 --- a/openbb_terminal/core/plots/plotly_helper.py +++ b/openbb_terminal/core/plots/plotly_helper.py @@ -1349,7 +1349,7 @@ class OpenBBFigure(go.Figure): dt_missing_days = pd.to_datetime(dt_missing_days) if len(dt_missing_days) < 2_000: - rangebreaks: List[Dict[str, Any]] = [dict(values=dt_missing_days)] + rangebreaks = [dict(values=dt_missing_days)] # We get the frequency of the data to hide intra-day gaps if df_data.index[-1].time() != df_data.index[-2].time(): diff --git a/openbb_terminal/cryptocurrency/defi/llama_view.py b/openbb_terminal/cryptocurrency/defi/llama_view.py index 6c84198cd9a..5ee2fecbf8c 100644 --- a/openbb_terminal/cryptocurrency/defi/llama_view.py +++ b/openbb_terminal/cryptocurrency/defi/llama_view.py @@ -168,7 +168,7 @@ def display_historical_tvl( else: print(f"{dapp} not found\n") if export and export != "": - return export_data( + export_data( export, os.path.dirname(os.path.abspath(__file__)), f"dtvl_{dapp}", @@ -176,6 +176,7 @@ def display_historical_tvl( sheet_name, fig, ) + return None return fig.show(external=external_axes) return None @@ -208,7 +209,7 @@ def display_defi_tvl( df = df.tail(limit) if export and export != "": - return export_data( + export_data( export, os.path.dirname(os.path.abspath(__file__)), "stvl", @@ -216,7 +217,7 @@ def display_defi_tvl( sheet_name, fig, ) - + return None fig.add_scatter(x=df["date"], y=df["totalLiquidityUSD"], name="TVL") return fig.show(external=external_axes)