Ignore r/ in subreddit names

This commit is contained in:
Callum Leslie committed 2022-06-04 01:57:09 +01:00
1 parent d39386178b
commit cd5924562f
1 file changed
+1 -1
+1 -1
View File
@@ -40,7 +40,7 @@ def get_subreddit_threads():
# ! Prompt the user to enter a subreddit
try:
subreddit = reddit.subreddit(
input("What subreddit would you like to pull from? ")
re.sub(r"r\/", "", input("What subreddit would you like to pull from? "))
)
except ValueError:
subreddit = reddit.subreddit("askreddit")