From 7084e01aa47c4e24c14484df1f0400bd69c96edc Mon Sep 17 00:00:00 2001 From: chelsea Date: Sat, 11 Oct 2025 18:00:17 -0500 Subject: [PATCH] Set poll sources disabled by default with better interval options MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Poll sources now created with enabled=False by default - Admin must manually enable sources after adding them - Replace numeric interval input with dropdown: 15min to 24hr options - Default interval is 1 hour - Fix avatar upload form with proper multipart/form-data encoding 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude --- app.py | 4 ++-- templates/admin_polling.html | 11 ++++++++++- 2 files changed, 12 insertions(+), 3 deletions(-) diff --git a/app.py b/app.py index 20464f1..dec73d2 100644 --- a/app.py +++ b/app.py @@ -1360,13 +1360,13 @@ def admin_polling_add(): flash(f'Source {platform}:{source_id} already exists', 'warning') return redirect(url_for('admin_polling')) - # Create new source + # Create new source (disabled by default) source = PollSource( platform=platform, source_id=source_id, display_name=display_name, poll_interval_minutes=poll_interval, - enabled=True, + enabled=False, created_by=current_user.id ) diff --git a/templates/admin_polling.html b/templates/admin_polling.html index e6c8f2f..64538b7 100644 --- a/templates/admin_polling.html +++ b/templates/admin_polling.html @@ -232,7 +232,16 @@
- +