diff --git a/media_manager/notification/dependencies.py b/media_manager/notification/dependencies.py index 6bc269d..743ed20 100644 --- a/media_manager/notification/dependencies.py +++ b/media_manager/notification/dependencies.py @@ -19,7 +19,7 @@ notification_repository_dep = Annotated[ def get_notification_service( - notification_repository: notification_repository_dep + notification_repository: notification_repository_dep, ) -> NotificationService: return NotificationService(notification_repository) diff --git a/media_manager/notification/repository.py b/media_manager/notification/repository.py index 0790997..f1c8f76 100644 --- a/media_manager/notification/repository.py +++ b/media_manager/notification/repository.py @@ -32,9 +32,9 @@ class NotificationRepository: try: stmt = ( select(Notification) - .where(Notification.read == False) + .where(Notification.read == False) # noqa: E712 .order_by(Notification.timestamp.desc()) - ) # noqa: E712 + ) results = self.db.execute(stmt).scalars().all() log.info(f"Successfully retrieved {len(results)} unread notifications.") return [ diff --git a/web/src/lib/components/app-sidebar.svelte b/web/src/lib/components/app-sidebar.svelte index 371a25f..a1664ce 100644 --- a/web/src/lib/components/app-sidebar.svelte +++ b/web/src/lib/components/app-sidebar.svelte @@ -1,5 +1,5 @@