From 0e50908747cc3ee8b7cfb2802d31553e6f0feccf Mon Sep 17 00:00:00 2001 From: "Troll (Hermes Agent)" Date: Sun, 9 Aug 2026 16:18:00 +0000 Subject: [PATCH] v0.6.1: remove duplicate is_valid_email from app.py (re now lives in helpers) --- README.md | 2 +- VERSION | 2 +- app.py | 9 --------- 3 files changed, 2 insertions(+), 11 deletions(-) diff --git a/README.md b/README.md index bfa8d5c..a7e8bb8 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # Theme Song Booth -**Version:** `v0.6.0` +**Version:** `v0.6.1` A Flask web application for running a convention booth where visitors request a custom AI-generated theme song. Operators manage the queue from an admin dashboard, generate Suno prompts, upload MP3 previews, collect payment, and deliver final songs by email. diff --git a/VERSION b/VERSION index a918a2a..ee6cdce 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -0.6.0 +0.6.1 diff --git a/app.py b/app.py index a3d5e4f..5aa1029 100644 --- a/app.py +++ b/app.py @@ -494,15 +494,6 @@ def admin_login(): return render_template('admin/login.html') -def is_valid_email(email): - """Return True if the given string looks like a valid email address.""" - if not email: - return False - # Very loose regex: local@domain.tld, no spaces, with a real TLD part. - pattern = r"^[^\s@]+@[^\s@]+\.[^\s@]+$" - return re.match(pattern, email) is not None - - @app.route('/admin/logout') def admin_logout(): """Clear the admin session."""