Fixed submission not assigned bug

pull/507/head
HallowedDust5 3 years ago
parent c91f5e4c6f
commit d5ac81c46c

@ -40,7 +40,7 @@ def get_subreddit_threads():
password=passkey,
)
pickThread(reddit)
submission = pickThread(reddit)
print_substep(f"Video will be: {submission.title} :thumbsup:")
console.log("Getting video comments...")
@ -91,6 +91,8 @@ def pickThread(reddit):
threads = subreddit.hot(limit=25)
submission = list(threads)[random.randrange(0, 25)]
return submission
def configurePasskey():
if os.getenv("REDDIT_2FA", default="no").casefold() == "yes":
print(

Loading…
Cancel
Save