refactor: subreddit.py uses toml config

This commit is contained in:
Callum Leslie committed 2022-07-05 21:39:11 +01:00
1 parent a110f49e44
commit b1d27a3b84
1 file changed
+2 -2
+2 -2
View File
@@ -1,5 +1,5 @@
import json
from os import getenv
from utils import settings
from utils.console import print_substep
@@ -22,7 +22,7 @@ def get_subreddit_undone(submissions: list, subreddit):
continue
if submission.over_18:
try:
if getenv("ALLOW_NSFW").casefold() == "false":
if settings.config["settings"]["allow_nsfw"] == "false":
print_substep("NSFW Post Detected. Skipping...")
continue
except AttributeError: