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])