From d27c85de4527a6dd7792a17dc13263a58b2e94b0 Mon Sep 17 00:00:00 2001 From: maziggy Date: Sun, 22 Mar 2026 14:22:49 +0100 Subject: [PATCH] Fix ruff format for user_notifications and spoolman --- backend/app/api/routes/user_notifications.py | 8 ++------ backend/app/services/spoolman.py | 1 + 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/backend/app/api/routes/user_notifications.py b/backend/app/api/routes/user_notifications.py index ec34ae1cf..91b425ee1 100644 --- a/backend/app/api/routes/user_notifications.py +++ b/backend/app/api/routes/user_notifications.py @@ -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: diff --git a/backend/app/services/spoolman.py b/backend/app/services/spoolman.py index e89d884d2..b878bb5aa 100644 --- a/backend/app/services/spoolman.py +++ b/backend/app/services/spoolman.py @@ -11,6 +11,7 @@ logger = logging.getLogger(__name__) BAMBU_RFID_TAG_LENGTH = 32 + @dataclass class SpoolmanSpool: """Represents a spool in Spoolman."""