diff --git a/api/ovdashboard_api/routers/v1/ticker.py b/api/ovdashboard_api/routers/v1/ticker.py index ac90230..85cecf8 100644 --- a/api/ovdashboard_api/routers/v1/ticker.py +++ b/api/ovdashboard_api/routers/v1/ticker.py @@ -64,9 +64,13 @@ async def get_ticker_content_lines( async def get_ticker_content( ticker_content_lines: Iterator[str] = Depends(get_ticker_content_lines), ) -> str: + ticker_content_padded = ["", *ticker_content_lines, ""] + if len(ticker_content_padded) == 2: + return "" + cfg = await Config.get() ticker_content = cfg.ticker.separator.join( - ["", *ticker_content_lines, ""], + ticker_content_padded, ) return ticker_content.strip()