Reupload (purge)

This commit is contained in:
gauvainboiche
2026-08-04 16:42:35 +02:00
commit bb74ba5173
1023 changed files with 79600 additions and 0 deletions
+14
View File
@@ -0,0 +1,14 @@
from dataclasses import dataclass
from datetime import datetime
@dataclass
class Article:
title: str
url: str
published_at: datetime
source: str
@dataclass
class Alert:
article: Article
matched_keywords: list[str]
+6
View File
@@ -0,0 +1,6 @@
from domain.entities import Article
class MatchingService:
def find_match(self, article: Article, keywords: list[str]) -> list[str]:
title_lower = article.title.lower()
return [kw for kw in keywords if kw.lower() in title_lower]