From 939d9ad387a7c8ac3a6901d95fa102972d9d4a97 Mon Sep 17 00:00:00 2001 From: Callum Leslie Date: Tue, 9 Aug 2022 20:05:06 +0100 Subject: [PATCH] chore: remove comment reference to .env --- reddit/subreddit.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/reddit/subreddit.py b/reddit/subreddit.py index 716a7fa..1042f7c 100644 --- a/reddit/subreddit.py +++ b/reddit/subreddit.py @@ -57,9 +57,7 @@ def get_subreddit_threads(POST_ID: str): subreddit_choice = sub if str(subreddit_choice).casefold().startswith("r/"): # removes the r/ from the input subreddit_choice = subreddit_choice[2:] - subreddit = reddit.subreddit( - subreddit_choice - ) # Allows you to specify in .env. Done for automation purposes. + subreddit = reddit.subreddit(subreddit_choice) if POST_ID: # would only be called if there are multiple queued posts submission = reddit.submission(id=POST_ID)