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:
@@ -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)
|
||||||
|
|||||||
Reference in New Issue
Block a user