2
0
mirror of https://github.com/codl/forget synced 2025-01-22 11:54:09 +01:00
This commit is contained in:
codl 2017-08-13 11:16:43 +02:00
parent 88b0eb121b
commit 6e39874578
No known key found for this signature in database
GPG Key ID: 6CD7C8891ED1233A

View File

@ -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()