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 )