Pārlūkot izejas kodu

news-mcp: rename health ttl field to lookback

Lukas Goldschmidt 1 mēnesi atpakaļ
vecāks
revīzija
b3cceafd27
1 mainītis faili ar 2 papildinājumiem un 2 dzēšanām
  1. 2 2
      news_mcp/mcp_server_fastmcp.py

+ 2 - 2
news_mcp/mcp_server_fastmcp.py

@@ -600,7 +600,7 @@ def root():
             "interval_seconds": NEWS_REFRESH_INTERVAL_SECONDS,
             "interval_seconds": NEWS_REFRESH_INTERVAL_SECONDS,
         },
         },
         "retention": {
         "retention": {
-            "ttl_hours": DEFAULT_LOOKBACK_HOURS,
+            "lookback_hours": DEFAULT_LOOKBACK_HOURS,
             "retention_days": NEWS_RETENTION_DAYS,
             "retention_days": NEWS_RETENTION_DAYS,
         },
         },
         "pruning": {
         "pruning": {
@@ -615,7 +615,7 @@ def health():
     store = SQLiteClusterStore(DB_PATH)
     store = SQLiteClusterStore(DB_PATH)
     return {
     return {
         "status": "ok",
         "status": "ok",
-        "ttl_hours": DEFAULT_LOOKBACK_HOURS,
+        "lookback_hours": DEFAULT_LOOKBACK_HOURS,
         "db": str(DB_PATH),
         "db": str(DB_PATH),
         "refresh": store.get_feed_state("breakingthenews"),
         "refresh": store.get_feed_state("breakingthenews"),
         "pruning": store.get_prune_state(
         "pruning": store.get_prune_state(