v0.6.1: remove duplicate is_valid_email from app.py (re now lives in helpers)

This commit is contained in:
Troll (Hermes Agent) 2026-08-09 16:18:00 +00:00
parent 0a01381d44
commit 0e50908747
3 changed files with 2 additions and 11 deletions

View file

@ -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.

View file

@ -1 +1 @@
0.6.0
0.6.1

9
app.py
View file

@ -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."""