File tree Expand file tree Collapse file tree 1 file changed +12
-1
lines changed Expand file tree Collapse file tree 1 file changed +12
-1
lines changed Original file line number Diff line number Diff line change 55from pydantic import BaseModel , Field
66
77from invokeai .app .api .dependencies import ApiDependencies
8- from invokeai .app .services .board_records .board_records_common import BoardChanges
8+ from invokeai .app .services .board_records .board_records_common import BoardChanges , UncategorizedImageCounts
99from invokeai .app .services .boards .boards_common import BoardDTO
1010from invokeai .app .services .shared .pagination import OffsetPaginatedResults
1111
@@ -146,3 +146,14 @@ async def list_all_board_image_names(
146146 board_id ,
147147 )
148148 return image_names
149+
150+
151+ @boards_router .get (
152+ "/uncategorized/counts" ,
153+ operation_id = "get_uncategorized_image_counts" ,
154+ response_model = UncategorizedImageCounts ,
155+ )
156+ async def get_uncategorized_image_counts () -> UncategorizedImageCounts :
157+ """Gets count of images and assets for uncategorized images (images with no board assocation)"""
158+
159+ return ApiDependencies .invoker .services .board_records .get_uncategorized_image_counts ()
You can’t perform that action at this time.
0 commit comments