Bläddra i källkod

fix: feed dedup hash must not include timestamp — only title+url

Lukas Goldschmidt 1 vecka sedan
förälder
incheckning
2ae7bd92e4
1 ändrade filer med 2 tillägg och 2 borttagningar
  1. 2 2
      news_mcp/jobs/poller.py

+ 2 - 2
news_mcp/jobs/poller.py

@@ -201,7 +201,7 @@ class ClusterPoller:
                 continue
 
             material = "\n".join(
-                f"{a.get('title','')}|{a.get('url','')}|{a.get('timestamp','')}"
+                f"{a.get('title','')}|{a.get('url','')}"
                 for a in feed_articles
             )
             content_hash = hashlib.sha1(material.encode("utf-8")).hexdigest()
@@ -473,7 +473,7 @@ class ClusterPoller:
         # Update feed_state: hash + item_count for feeds that had changes
         for feed_url, feed_articles in feed_map.items():
             material = "\n".join(
-                f"{a.get('title','')}|{a.get('url','')}|{a.get('timestamp','')}"
+                f"{a.get('title','')}|{a.get('url','')}"
                 for a in feed_articles
             )
             content_hash = hashlib.sha1(material.encode("utf-8")).hexdigest()