fix: wrongly typed boolean

This commit is contained in:
Callum Leslie committed 2022-07-05 23:23:22 +01:00
1 parent 9244cc9b2b
commit 3e1b95e708
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -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()
+1 -1
View File
@@ -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: