From 99d51fe14af55002da9e76987387f7f2cb423e5f Mon Sep 17 00:00:00 2001 From: chelsea Date: Sat, 11 Oct 2025 18:36:32 -0500 Subject: [PATCH] Use source-specific polling settings in collection MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Read max_posts from source.max_posts (fallback to 100) - Read fetch_comments from source settings - Allows customizing collection per source 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude --- polling_service.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/polling_service.py b/polling_service.py index 543c37e..908bdd9 100644 --- a/polling_service.py +++ b/polling_service.py @@ -161,14 +161,14 @@ class PollingService: end_iso = end_date.isoformat() try: - # Call the existing collect_platform function + # Call the existing collect_platform function using source settings posts_collected = collect_platform( platform=source.platform, community=source.source_id, start_date=start_iso, end_date=end_iso, - max_posts=100, # Default limit - fetch_comments=True, + max_posts=source.max_posts or 100, + fetch_comments=source.fetch_comments if hasattr(source, 'fetch_comments') else True, index=index, dirs=dirs )