fix: ruff lint + format fixes in tests, ESLint fixes in frontend

This commit is contained in:
2026-07-17 21:28:58 +02:00
parent 341d0c6f38
commit fbb1b39b57
56 changed files with 1399 additions and 721 deletions
+7 -21
View File
@@ -38,24 +38,14 @@ class RetouchResult(Base):
nullable=True,
index=True,
)
original_file_path: Mapped[str] = mapped_column(
String(512), nullable=False
)
original_file_name: Mapped[str] = mapped_column(
String(255), nullable=False
)
original_file_path: Mapped[str] = mapped_column(String(512), nullable=False)
original_file_name: Mapped[str] = mapped_column(String(255), nullable=False)
mime_type: Mapped[str] = mapped_column(
String(100), nullable=False, default="image/png"
)
retouched_file_path: Mapped[str | None] = mapped_column(
String(512), nullable=True
)
status: Mapped[str] = mapped_column(
String(20), nullable=False, default="pending"
)
error_message: Mapped[str | None] = mapped_column(
Text, nullable=True
)
retouched_file_path: Mapped[str | None] = mapped_column(String(512), nullable=True)
status: Mapped[str] = mapped_column(String(20), nullable=False, default="pending")
error_message: Mapped[str | None] = mapped_column(Text, nullable=True)
created_at: Mapped[datetime] = mapped_column(
DateTime(timezone=True),
nullable=False,
@@ -84,10 +74,6 @@ class RetouchResult(Base):
"retouched_file_path": self.retouched_file_path,
"status": self.status,
"error_message": self.error_message,
"created_at": (
self.created_at.isoformat() if self.created_at else None
),
"updated_at": (
self.updated_at.isoformat() if self.updated_at else None
),
"created_at": (self.created_at.isoformat() if self.created_at else None),
"updated_at": (self.updated_at.isoformat() if self.updated_at else None),
}