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.") print_substep("Logging into Reddit.")
content = {} 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") print("\nEnter your two-factor authentication code from your authenticator app.\n")
code = input("> ") code = input("> ")
print() print()

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

Loading…
Cancel
Save