Move trial_run check to after gilded & and distinguished check,

since these comments would erroneously be indicated for deletion
by trial mode.
pull/33/head
Dave Disser 10 years ago
parent 8b8bdfb7c0
commit e682468eb3

@ -123,15 +123,16 @@ for thing in things:
thing.id in whitelist_ids: thing.id in whitelist_ids:
continue continue
if whitelist_distinguished and thing.distinguished:
continue
if whitelist_gilded and thing.gilded:
continue
if trial_run: # Don't do anything, trial mode! if trial_run: # Don't do anything, trial mode!
if verbose: if verbose:
print("Would have deleted {thing}: '{content}'".format( print("Would have deleted {thing}: '{content}'".format(
thing=thing.id, content=thing)) thing=thing.id, content=thing))
continue continue
if whitelist_distinguished and thing.distinguished:
continue
if whitelist_gilded and thing.gilded:
continue
if clear_vote: if clear_vote:
thing.clear_vote() thing.clear_vote()

Loading…
Cancel
Save