mirror of
https://github.com/maziggy/bambuddy.git
synced 2026-10-09 07:25:44 +02:00
Fix import shadowing in email_service.py
Co-authored-by: cadtoolbox <12723486+cadtoolbox@users.noreply.github.com>
This commit is contained in:
co-authored by
cadtoolbox
parent
84b5585e94
commit
7735e8ab09
@@ -8,15 +8,12 @@ import smtplib
|
||||
import string
|
||||
from email.mime.multipart import MIMEMultipart
|
||||
from email.mime.text import MIMEText
|
||||
from typing import TYPE_CHECKING
|
||||
|
||||
from sqlalchemy import select
|
||||
from sqlalchemy.ext.asyncio import AsyncSession
|
||||
|
||||
from backend.app.models.settings import Settings
|
||||
|
||||
if TYPE_CHECKING:
|
||||
from backend.app.schemas.auth import SMTPSettings
|
||||
from backend.app.schemas.auth import SMTPSettings
|
||||
|
||||
logger = logging.getLogger(__name__)
|
||||
|
||||
@@ -65,8 +62,6 @@ async def get_smtp_settings(db: AsyncSession) -> SMTPSettings | None:
|
||||
Returns:
|
||||
SMTPSettings object or None if not configured
|
||||
"""
|
||||
from backend.app.schemas.auth import SMTPSettings
|
||||
|
||||
# Fetch all SMTP-related settings
|
||||
result = await db.execute(
|
||||
select(Settings).where(
|
||||
|
||||
Reference in New Issue
Block a user