Skip to content

Commit c586d65

Browse files
tidy(app): remove extraneous condition from query
1 parent 25107e4 commit c586d65

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

invokeai/app/services/board_records/board_records_sqlite.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -285,8 +285,7 @@ def get_uncategorized_image_counts(self) -> UncategorizedImageCounts:
285285
COUNT(*) AS unassigned_count
286286
FROM images i
287287
LEFT JOIN board_images bi ON i.image_name = bi.image_name
288-
WHERE i.image_category IN ('general', 'control', 'mask', 'user', 'other')
289-
AND bi.board_id IS NULL
288+
WHERE bi.board_id IS NULL
290289
AND i.is_intermediate = 0
291290
GROUP BY category_type;
292291
"""

0 commit comments

Comments
 (0)