Bug where text files for saving copies were being created even with saving set to false.

pull/30/head
x89 10 years ago
parent 3ab1f80924
commit b3cc8a4f5f

1
.gitignore vendored

@ -1,3 +1,4 @@
.errors
2015*.txt 2015*.txt
2016*.txt 2016*.txt
2017*.txt 2017*.txt

@ -1,4 +1,4 @@
praw==2.1.20 praw==2.1.21
requests==2.6.0 requests==2.6.0
SimpleConfigParser==0.1.0 SimpleConfigParser==0.1.0
six==1.9.0 six==1.9.0

@ -1,4 +1,4 @@
#!/usr/bin/env sh #!/usr/bin/env sh
source ./bin/activate source ./bin/activate
pip install --upgrade praw pip install --upgrade praw
python ./shreddit.py python ./shreddit.py 2>>./.errors

@ -53,7 +53,7 @@ clear_vote = config.getboolean('main', 'clear_vote')
trial_run = config.getboolean('main', 'trial_run') trial_run = config.getboolean('main', 'trial_run')
edit_only = config.getboolean('main', 'edit_only') edit_only = config.getboolean('main', 'edit_only')
item = config.get('main', 'item') item = config.get('main', 'item')
keep_a_copy = config.get('main', 'keep_a_copy') keep_a_copy = config.getboolean('main', 'keep_a_copy')
whitelist_distinguished = config.getboolean('main', 'whitelist_distinguished') whitelist_distinguished = config.getboolean('main', 'whitelist_distinguished')
whitelist_gilded = config.getboolean('main', 'whitelist_gilded') whitelist_gilded = config.getboolean('main', 'whitelist_gilded')
nuke_hours = config.getint('main', 'nuke_hours') nuke_hours = config.getint('main', 'nuke_hours')
@ -64,7 +64,6 @@ r = praw.Reddit(user_agent="shreddit/3.2")
if keep_a_copy: if keep_a_copy:
r.config.store_json_result = True r.config.store_json_result = True
def login(user=None, password=None): def login(user=None, password=None):
try: try:
if user and password: if user and password:

Loading…
Cancel
Save