Version 1.1.1

This commit is contained in:
2026-01-28 15:57:24 +01:00
parent 105bcc8d7a
commit 06a59bc599
11 changed files with 547 additions and 197 deletions

View File

@@ -11,7 +11,7 @@ import os
from werkzeug.security import generate_password_hash
from app import app, db, User, Church
from app import app, db, User, Church, get_smtp_settings
def main() -> None:
@@ -21,6 +21,9 @@ def main() -> None:
with app.app_context():
db.create_all()
# Ensure singleton SMTP settings row exists
get_smtp_settings()
if not User.query.filter_by(username=admin_username).first():
admin_church = Church.query.filter_by(name="Admin").first()
if not admin_church: