This commit is contained in:
codl 2017-08-14 21:22:42 +02:00
parent 1c1ad534a7
commit 59c278b3dc
No known key found for this signature in database
GPG Key ID: 6CD7C8891ED1233A
1 changed files with 2 additions and 2 deletions

View File

@ -150,13 +150,13 @@ def delete_from_account(account_id):
if account.policy_delete_every == timedelta(0):
print("deleting all {} eligible posts for {}".format(len(eligible), account))
for post in eligible:
lib.twitter.delete(post)
account.touch_delete()
lib.twitter.delete(post)
else:
post = random.choice(eligible)
print("deleting {}".format(post))
lib.twitter.delete(post)
account.touch_delete()
lib.twitter.delete(post)
db.session.commit()