From 302cd355872a8d298f84787f53879c00bef26d47 Mon Sep 17 00:00:00 2001 From: Callum Leslie Date: Mon, 11 Jul 2022 17:58:49 +0100 Subject: [PATCH] fix: logic error --- reddit/subreddit.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/reddit/subreddit.py b/reddit/subreddit.py index c316ccf..4cfd669 100644 --- a/reddit/subreddit.py +++ b/reddit/subreddit.py @@ -97,7 +97,8 @@ def get_subreddit_threads(POST_ID: str): continue # # see https://github.com/JasonLovesDoggo/RedditVideoMakerBot/issues/78 if not top_level_comment.stickied: sanitised = sanitize_text(top_level_comment.body) - if not sanitised or sanitised != " ": + print(sanitised) + if not sanitised or sanitised == " ": continue if len(top_level_comment.body) <= int( settings.config["reddit"]["thread"]["max_comment_length"]