mirror of
https://github.com/invoke-ai/InvokeAI.git
synced 2026-01-14 09:58:03 -05:00
chore: ruff
This commit is contained in:
@@ -216,6 +216,7 @@ class ImageCollectionCounts(BaseModel):
|
||||
|
||||
class ImageNamesResult(BaseModel):
|
||||
"""Response containing ordered image names with metadata for optimistic updates."""
|
||||
|
||||
image_names: list[str] = Field(description="Ordered list of image names")
|
||||
starred_count: int = Field(description="Number of starred images (when starred_first=True)")
|
||||
total_count: int = Field(description="Total number of images matching the query")
|
||||
|
||||
@@ -479,8 +479,4 @@ class SqliteImageRecordStorage(ImageRecordStorageBase):
|
||||
result = cast(list[sqlite3.Row], cursor.fetchall())
|
||||
image_names = [row[0] for row in result]
|
||||
|
||||
return ImageNamesResult(
|
||||
image_names=image_names,
|
||||
starred_count=starred_count,
|
||||
total_count=len(image_names)
|
||||
)
|
||||
return ImageNamesResult(image_names=image_names, starred_count=starred_count, total_count=len(image_names))
|
||||
|
||||
Reference in New Issue
Block a user