This commit is contained in:
codl 2017-08-04 16:41:12 +02:00
parent 9eef536e0f
commit fdf7148cf1
No known key found for this signature in database
GPG Key ID: 6CD7C8891ED1233A
1 changed files with 1 additions and 1 deletions

View File

@ -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: