chore: ruff

This commit is contained in:
psychedelicious
2025-06-26 19:45:48 +10:00
parent 5385282325
commit ea8da0bfbf
2 changed files with 2 additions and 5 deletions

View File

@@ -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")

View File

@@ -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))