add reddit threshold
This commit is contained in:
@@ -368,6 +368,11 @@ def curate_from_reddit(posted_titles_data, posted_titles, used_images_data, used
|
|||||||
attempts += 1
|
attempts += 1
|
||||||
continue
|
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()
|
author = get_next_author_round_robin()
|
||||||
if not author:
|
if not author:
|
||||||
logging.info(f"Skipping post '{title}' due to tweet rate limits for all authors")
|
logging.info(f"Skipping post '{title}' due to tweet rate limits for all authors")
|
||||||
|
|||||||
Reference in New Issue
Block a user