From 7b4c3b1d1dfbba02e67ad1c786c31439c081cbab Mon Sep 17 00:00:00 2001 From: Deniz Dogan Date: Sun, 26 Jul 2015 22:17:56 +0200 Subject: [PATCH] Fix: didn't remove all content --- shreddit.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/shreddit.py b/shreddit.py index ee86f7e..392855b 100755 --- a/shreddit.py +++ b/shreddit.py @@ -185,9 +185,10 @@ def remove_things(things): print('Editing and deleting {msg}'.format(msg=msg)) thing.edit(replacement_text) + removal_count += 1 # rename? this includes edits as well as deletions if not edit_only: thing.delete() - removal_count == 1 + removal_count += 1 return removal_count things = get_things()