fix: wrongly typed boolean

pull/861/head
Callum Leslie 3 years ago
parent 9244cc9b2b
commit 3e1b95e708
No known key found for this signature in database
GPG Key ID: D382C4AFEECEAA90

@ -17,7 +17,7 @@ def get_subreddit_threads(POST_ID: str):
print_substep("Logging into Reddit.")
content = {}
if settings.config["reddit"]["creds"]["2fa"] == "true":
if settings.config["reddit"]["creds"]["2fa"] == True:
print("\nEnter your two-factor authentication code from your authenticator app.\n")
code = input("> ")
print()

@ -22,7 +22,7 @@ def get_subreddit_undone(submissions: list, subreddit):
continue
if submission.over_18:
try:
if settings.config["settings"]["allow_nsfw"] == "false":
if settings.config["settings"]["allow_nsfw"] == False:
print_substep("NSFW Post Detected. Skipping...")
continue
except AttributeError:

Loading…
Cancel
Save