diff options
Diffstat (limited to 'src/web/models/article.py')
-rw-r--r-- | src/web/models/article.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/web/models/article.py b/src/web/models/article.py index 44a4234d..2a5f4329 100644 --- a/src/web/models/article.py +++ b/src/web/models/article.py @@ -54,7 +54,7 @@ class Article(db.Model): """ return Article.query.filter(Article.date < self.date, Article.feed_id == self.feed_id)\ - .order_by(desc("Article.date")).first() + .order_by(desc("date")).first() def next_article(self): """ @@ -62,7 +62,7 @@ class Article(db.Model): """ return Article.query.filter(Article.date > self.date, Article.feed_id == self.feed_id)\ - .order_by(asc("Article.date")).first() + .order_by(asc("date")).first() def __repr__(self): return "<Article(id=%d, entry_id=%s, title=%r, " \ |