bad!
This commit is contained in:
parent
9eef536e0f
commit
fdf7148cf1
2
tasks.py
2
tasks.py
|
@ -123,7 +123,7 @@ def delete_from_account(account_id):
|
||||||
filter(~Post.id.in_(latest_n_posts)).\
|
filter(~Post.id.in_(latest_n_posts)).\
|
||||||
order_by(db.func.random()).limit(100).all()
|
order_by(db.func.random()).limit(100).all()
|
||||||
|
|
||||||
posts = refresh_account(account_id)
|
posts = refresh_posts(posts)
|
||||||
if account.service == 'twitter':
|
if account.service == 'twitter':
|
||||||
eligible = list((post for post in posts if not account.policy_keep_favourites or not post.favourite))
|
eligible = list((post for post in posts if not account.policy_keep_favourites or not post.favourite))
|
||||||
if eligible:
|
if eligible:
|
||||||
|
|
Loading…
Reference in New Issue