From 59c278b3dce71779f5cef3a58aa1e04a5745d3ba Mon Sep 17 00:00:00 2001 From: codl Date: Mon, 14 Aug 2017 21:22:42 +0200 Subject: [PATCH] x --- tasks.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tasks.py b/tasks.py index 9a4c7e5..901cdb0 100644 --- a/tasks.py +++ b/tasks.py @@ -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()