Skip to content

Commit

Permalink
Update entry_repository.py
Browse files Browse the repository at this point in the history
  • Loading branch information
tubone24 authored Mar 6, 2024
1 parent 2454389 commit 8a305b8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/repository/entry_repository.py
Original file line number Diff line number Diff line change
Expand Up @@ -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])
Expand Down

0 comments on commit 8a305b8

Please sign in to comment.