fix: wrongly typed boolean
This commit is contained in:
2 files changed
+2
-2
No files matched your search
+1
-1
@@ -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
@@ -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:
|
||||
|
||||
Reference in new issue
Block a user