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 5
5
from pydantic import BaseModel , Field
6
6
7
7
from 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
9
9
from invokeai .app .services .boards .boards_common import BoardDTO
10
10
from invokeai .app .services .shared .pagination import OffsetPaginatedResults
11
11
@@ -146,3 +146,14 @@ async def list_all_board_image_names(
146
146
board_id ,
147
147
)
148
148
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