From baded8e5fbb18671f3855dce5d00736a931bc146 Mon Sep 17 00:00:00 2001 From: Ethan Dalool Date: Sun, 14 Nov 2021 13:37:20 -0800 Subject: [PATCH] Remove --verbose since vlogging handles that. --- timesearch.py | 12 ------------ timesearch_modules/get_comments.py | 4 ---- timesearch_modules/get_submissions.py | 3 --- timesearch_modules/livestream.py | 3 --- 4 files changed, 22 deletions(-) diff --git a/timesearch.py b/timesearch.py index 080098e..d7434e1 100644 --- a/timesearch.py +++ b/timesearch.py @@ -109,9 +109,6 @@ get_comments: --dont_supplement: If provided, trust the pushshift data and do not fetch live copies from reddit. - - -v | --verbose: - If provided, print extra information to the screen. '''.strip(), get_styles=''' @@ -148,9 +145,6 @@ get_submissions: --dont_supplement: If provided, trust the pushshift data and do not fetch live copies from reddit. - - -v | --verbose: - If provided, print extra information to the screen. '''.strip(), get_wiki=''' @@ -247,9 +241,6 @@ livestream: If submissions and comments are BOTH left unspecified, then they will BOTH be collected. - -v | --verbose: - If provided, print extra information to the screen. - -w 30 | --wait 30: The number of seconds to wait between cycles. @@ -343,7 +334,6 @@ def main(argv): p_get_comments.add_argument('-r', '--subreddit', dest='subreddit', default=None) p_get_comments.add_argument('-s', '--specific', dest='specific_submission', default=None) p_get_comments.add_argument('-u', '--user', dest='username', default=None) - p_get_comments.add_argument('-v', '--verbose', dest='verbose', action='store_true') p_get_comments.add_argument('--dont_supplement', '--dont-supplement', dest='do_supplement', action='store_false') p_get_comments.add_argument('-l', '--lower', dest='lower', default='update') p_get_comments.add_argument('-up', '--upper', dest='upper', default=None) @@ -364,7 +354,6 @@ def main(argv): p_livestream.add_argument('-r', '--subreddit', dest='subreddit', default=None) p_livestream.add_argument('-s', '--submissions', dest='submissions', action='store_true') p_livestream.add_argument('-u', '--user', dest='username', default=None) - p_livestream.add_argument('-v', '--verbose', dest='verbose', action='store_true') p_livestream.add_argument('-w', '--wait', dest='sleepy', default=30) p_livestream.set_defaults(func=livestream_gateway) @@ -399,7 +388,6 @@ def main(argv): p_get_submissions.add_argument('-r', '--subreddit', dest='subreddit', default=None) p_get_submissions.add_argument('-u', '--user', dest='username', default=None) p_get_submissions.add_argument('-up', '--upper', dest='upper', default=None) - p_get_submissions.add_argument('-v', '--verbose', dest='verbose', action='store_true') p_get_submissions.add_argument('--dont_supplement', '--dont-supplement', dest='do_supplement', action='store_false') p_get_submissions.set_defaults(func=get_submissions_gateway) diff --git a/timesearch_modules/get_comments.py b/timesearch_modules/get_comments.py index 592ab89..7a7685c 100644 --- a/timesearch_modules/get_comments.py +++ b/timesearch_modules/get_comments.py @@ -100,16 +100,12 @@ def get_comments( database.sql.commit() def get_comments_argparse(args): - if args.verbose: - common.log.setLevel(common.logging.DEBUG) - return get_comments( subreddit=args.subreddit, username=args.username, #limit=common.int_none(args.limit), #threshold=common.int_none(args.threshold), #num_thresh=common.int_none(args.num_thresh), - #verbose=args.verbose, specific_submission=args.specific_submission, do_supplement=args.do_supplement, lower=args.lower, diff --git a/timesearch_modules/get_submissions.py b/timesearch_modules/get_submissions.py index 50f24ca..3eaaa82 100644 --- a/timesearch_modules/get_submissions.py +++ b/timesearch_modules/get_submissions.py @@ -88,9 +88,6 @@ def get_submissions( print('Ended with %d items in %s' % (itemcount, database.filepath.basename)) def get_submissions_argparse(args): - if args.verbose: - common.log.setLevel(common.logging.DEBUG) - if args.lower == 'update': lower = 'update' else: diff --git a/timesearch_modules/livestream.py b/timesearch_modules/livestream.py index fd0cc8d..f58518e 100644 --- a/timesearch_modules/livestream.py +++ b/timesearch_modules/livestream.py @@ -193,9 +193,6 @@ def _livestream_helper( return results def livestream_argparse(args): - if args.verbose: - common.log.setLevel(common.logging.DEBUG) - if args.submissions is args.comments is False: args.submissions = True args.comments = True