Fix ruff format for user_notifications and spoolman

This commit is contained in:
maziggy
2026-03-22 14:23:25 +01:00
parent 4401f5ab4d
commit d27c85de45
2 changed files with 3 additions and 6 deletions
+2 -6
View File
@@ -36,9 +36,7 @@ async def get_user_email_preferences(
notify_print_stopped=True,
)
result = await db.execute(
select(UserEmailPreference).where(UserEmailPreference.user_id == current_user.id)
)
result = await db.execute(select(UserEmailPreference).where(UserEmailPreference.user_id == current_user.id))
pref = result.scalar_one_or_none()
if pref is None:
@@ -72,9 +70,7 @@ async def update_user_email_preferences(
detail="User must have an email address to receive notifications",
)
result = await db.execute(
select(UserEmailPreference).where(UserEmailPreference.user_id == current_user.id)
)
result = await db.execute(select(UserEmailPreference).where(UserEmailPreference.user_id == current_user.id))
pref = result.scalar_one_or_none()
if pref is None:
+1
View File
@@ -11,6 +11,7 @@ logger = logging.getLogger(__name__)
BAMBU_RFID_TAG_LENGTH = 32
@dataclass
class SpoolmanSpool:
"""Represents a spool in Spoolman."""