oops
This commit is contained in:
parent
88b0eb121b
commit
6e39874578
2
tasks.py
2
tasks.py
|
@ -164,7 +164,7 @@ def refresh_posts(posts):
|
||||||
def refresh_account(account_id):
|
def refresh_account(account_id):
|
||||||
account = Account.query.get(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)
|
posts = refresh_posts(posts)
|
||||||
account.touch_refresh()
|
account.touch_refresh()
|
||||||
|
|
Loading…
Reference in New Issue