Просмотр исходного кода

Fix ruff format for user_notifications and spoolman

maziggy 2 месяцев назад
Родитель
Сommit
d27c85de45
2 измененных файлов с 3 добавлено и 6 удалено
  1. 2 6
      backend/app/api/routes/user_notifications.py
  2. 1 0
      backend/app/services/spoolman.py

+ 2 - 6
backend/app/api/routes/user_notifications.py

@@ -36,9 +36,7 @@ async def get_user_email_preferences(
             notify_print_stopped=True,
             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()
     pref = result.scalar_one_or_none()
 
 
     if pref is 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",
             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()
     pref = result.scalar_one_or_none()
 
 
     if pref is None:
     if pref is None:

+ 1 - 0
backend/app/services/spoolman.py

@@ -11,6 +11,7 @@ logger = logging.getLogger(__name__)
 
 
 BAMBU_RFID_TAG_LENGTH = 32
 BAMBU_RFID_TAG_LENGTH = 32
 
 
+
 @dataclass
 @dataclass
 class SpoolmanSpool:
 class SpoolmanSpool:
     """Represents a spool in Spoolman."""
     """Represents a spool in Spoolman."""