diff --git a/utils/news_paper.py b/utils/news_paper.py index f4badaf..14a8dea 100644 --- a/utils/news_paper.py +++ b/utils/news_paper.py @@ -44,7 +44,7 @@ class News: for idx, new in enumerate(articles): viewed = session.query(ViewedNews).filter( ViewedNews.title==new['title'], - ViewedNews.published_at==self._date_convert(new['publishedAt']) + ViewedNews.published_at==self._date_convert(new['publishedAt']).date() ) if list(viewed):