From 326e8b7bcf30a953603444086f2744631f10e8ed Mon Sep 17 00:00:00 2001 From: Manus Date: Thu, 2 Jul 2026 03:54:39 -0400 Subject: [PATCH] =?UTF-8?q?Checkpoint:=20Ajout=20d'un=20filtre=20de=20date?= =?UTF-8?q?=20minimale=20(1er=20avril=202026)=20dans=20le=20moteur=20RSS?= =?UTF-8?q?=20:=20les=20articles=20publi=C3=A9s=20avant=20cette=20date=20s?= =?UTF-8?q?ont=20ignor=C3=A9s=20sans=20passer=20par=20la=20classification?= =?UTF-8?q?=20IA.=20Les=20tombstones=20en=20recette=20sont=20peupl=C3=A9s?= =?UTF-8?q?=20avec=20les=20490=20articles=20existants=20pour=20=C3=A9viter?= =?UTF-8?q?=20les=20doublons.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- client/public/__manus__/version.json | 4 ++-- server/rssEngine.ts | 7 +++++++ 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/client/public/__manus__/version.json b/client/public/__manus__/version.json index 5af8a5a..8625ae2 100644 --- a/client/public/__manus__/version.json +++ b/client/public/__manus__/version.json @@ -1,4 +1,4 @@ { - "version": "78f2d166", - "timestamp": 1782978598907 + "version": "2e4be218", + "timestamp": 1782978879557 } \ No newline at end of file diff --git a/server/rssEngine.ts b/server/rssEngine.ts index 999458c..3fc8864 100644 --- a/server/rssEngine.ts +++ b/server/rssEngine.ts @@ -522,6 +522,13 @@ async function processFeed(feed: RssFeed): Promise { continue; } + // ─── Filtre de date minimale : ignorer les articles trop anciens ────────────── + const MIN_DATE = new Date('2026-04-01'); + if (pubDate && pubDate < MIN_DATE) { + result.skippedItems++; + continue; + } + // ─── Clé de déduplication : basée sur le titre NORMALISÉ (sans département) ─── const normalizedTitle = buildMergeKey(title); const dedupKey = dedupHash(normalizedTitle + "|" + (feed.feedType ?? ""));