From 555fe4799f22677e8eb424e6d4b4dd16de038e63 Mon Sep 17 00:00:00 2001 From: Shane Date: Mon, 19 May 2025 09:49:54 +1000 Subject: [PATCH] add reddit threshold --- foodie_automator_reddit.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/foodie_automator_reddit.py b/foodie_automator_reddit.py index 8e1988d..b8de9ba 100644 --- a/foodie_automator_reddit.py +++ b/foodie_automator_reddit.py @@ -368,6 +368,11 @@ def curate_from_reddit(posted_titles_data, posted_titles, used_images_data, used attempts += 1 continue + if upvotes < 300: + logging.info(f"Skipping post '{title}' due to insufficient upvotes ({upvotes} < 300)") + attempts += 1 + continue + author = get_next_author_round_robin() if not author: logging.info(f"Skipping post '{title}' due to tweet rate limits for all authors")