From 6e3987457828f7ef2ea0283f36bc28344014d89e Mon Sep 17 00:00:00 2001 From: codl Date: Sun, 13 Aug 2017 11:16:43 +0200 Subject: [PATCH] oops --- tasks.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tasks.py b/tasks.py index e172162..a67107d 100644 --- a/tasks.py +++ b/tasks.py @@ -164,7 +164,7 @@ def refresh_posts(posts): def refresh_account(account_id): account = Account.query.get(account_id) - posts = Post.query.with_parent(account).filter(Post.id != oldest_post.id).order_by(db.asc(Post.updated_at)).limit(100).all() + posts = Post.query.with_parent(account).order_by(db.asc(Post.updated_at)).limit(100).all() posts = refresh_posts(posts) account.touch_refresh()