Skip to content

Commit

Permalink
tidy(app): remove extraneous condition from query
Browse files Browse the repository at this point in the history
  • Loading branch information
psychedelicious committed Jul 15, 2024
1 parent 0fc06bc commit ab160c4
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions invokeai/app/services/board_records/board_records_sqlite.py
Original file line number Diff line number Diff line change
Expand Up @@ -285,8 +285,7 @@ def get_uncategorized_image_counts(self) -> UncategorizedImageCounts:
COUNT(*) AS unassigned_count
FROM images i
LEFT JOIN board_images bi ON i.image_name = bi.image_name
WHERE i.image_category IN ('general', 'control', 'mask', 'user', 'other')
AND bi.board_id IS NULL
WHERE bi.board_id IS NULL
AND i.is_intermediate = 0
GROUP BY category_type;
"""
Expand Down

0 comments on commit ab160c4

Please sign in to comment.