diff --git a/backend/app/routers/library.py b/backend/app/routers/library.py index b30668c..baf9ed6 100644 --- a/backend/app/routers/library.py +++ b/backend/app/routers/library.py @@ -85,7 +85,9 @@ async def get_library_stats( discarded_count = ( await db.execute( - select(func.count(Photo.id)).where(owner, Photo.is_discarded.is_(True)) + select(func.count(Photo.id)).where( + owner, Photo.is_hidden.is_(False), Photo.is_discarded.is_(True) + ) ) ).scalar() or 0