From 2ca3246de2b7b54452ba7d996064ae32258f9cd3 Mon Sep 17 00:00:00 2001 From: François Schmidts Date: Mon, 12 Oct 2015 21:56:48 +0200 Subject: fixing sqlalchemy resolving warning --- src/web/models/article.py | 4 ++-- src/web/models/feed.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'src/web/models') 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 "' % (self.title) -- cgit