From 156171e8f1d0f4eedb0b627f3301a8aa1475b028 Mon Sep 17 00:00:00 2001 From: Michael Panchenko Date: Sun, 11 Jan 2026 19:30:59 +0700 Subject: [PATCH] Minor --- src/serena/dashboard.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/serena/dashboard.py b/src/serena/dashboard.py index 3a88b305..81d3e037 100644 --- a/src/serena/dashboard.py +++ b/src/serena/dashboard.py @@ -321,8 +321,8 @@ class SerenaDashboardAPI: @self._app.route("/news_snippet_ids", methods=["GET"]) def get_news_snippet_ids() -> dict[str, str | list[int]]: def _get_unread_news_ids() -> list[int]: - all_news_files = (Path(REPO_ROOT) / "src" / "serena" / "resources" / "dashboard" / "news").glob("*.html") - all_news_ids = sorted([int(f.stem) for f in all_news_files]) + all_news_files = (Path(SERENA_DASHBOARD_DIR) / "news").glob("*.html") + all_news_ids = [int(f.stem) for f in all_news_files] news_snippet_id_file = SerenaPaths().news_snippet_id_file if not os.path.exists(news_snippet_id_file): return all_news_ids