Add polling configuration fields to PollSource model

- Add max_posts field (default 100)
- Add fetch_comments boolean (default true)
- Add priority field (low/medium/high, default medium)
- Enables per-source control of collection settings

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
2025-10-11 18:36:17 -05:00
parent 066d90ea53
commit 5d3b01926c

View File

@@ -140,6 +140,9 @@ class PollSource(db.Model):
# Polling configuration # Polling configuration
enabled = db.Column(db.Boolean, default=True, nullable=False) enabled = db.Column(db.Boolean, default=True, nullable=False)
poll_interval_minutes = db.Column(db.Integer, default=60, nullable=False) # How often to poll poll_interval_minutes = db.Column(db.Integer, default=60, nullable=False) # How often to poll
max_posts = db.Column(db.Integer, default=100, nullable=False) # Max posts per poll
fetch_comments = db.Column(db.Boolean, default=True, nullable=False) # Whether to fetch comments
priority = db.Column(db.String(20), default='medium', nullable=False) # low, medium, high
# Status tracking # Status tracking
last_poll_time = db.Column(db.DateTime, nullable=True) last_poll_time = db.Column(db.DateTime, nullable=True)