From 8a305b8119488285691c439606b58b7690c9b568 Mon Sep 17 00:00:00 2001 From: "tubone(Yu Otsubo)" Date: Wed, 6 Mar 2024 21:26:32 +0900 Subject: [PATCH] Update entry_repository.py --- src/repository/entry_repository.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/repository/entry_repository.py b/src/repository/entry_repository.py index 7f8aaac2..d3a07236 100644 --- a/src/repository/entry_repository.py +++ b/src/repository/entry_repository.py @@ -34,7 +34,7 @@ def get_until_last_published_entries(self, url: str, time: datetime) -> List[Ent result = [] for entry in entries: language = self.predict_lang_driver.predict(text=entry["text"], k=1)[0][0] - if language != "ja" or language != "en": + if language != "ja" and language != "en": continue keywords = [ Keyword(word=x[0], score=x[1])