style: apply black formatting to pass CI validation (#126)
CI/CD Pipeline / Validate Code Quality And Tests (push) Has been cancelled
CI/CD Pipeline / Frontend Lint (push) Has been cancelled
Deploy / Deploy Staging (push) Has been cancelled
Deploy / Build Production Runtime Images (push) Has been cancelled
Deploy / Deploy Production (push) Has been cancelled
Deploy / Production Browser E2E (push) Has been cancelled

This commit was merged in pull request #126.
This commit is contained in:
2026-06-30 17:23:08 +08:00
parent 1e6f78a346
commit 52ff2f80ad
107 changed files with 1517 additions and 1010 deletions
@@ -80,11 +80,7 @@ class SQLAlchemyGenerationTaskRepository:
return [_to_domain(m) for m in models]
def count_by_user(self, user_id: str) -> int:
return (
self.session.query(GenerationTaskModel)
.filter(GenerationTaskModel.created_by_user_id == user_id)
.count()
)
return self.session.query(GenerationTaskModel).filter(GenerationTaskModel.created_by_user_id == user_id).count()
def list_recent_by_user(self, user_id: str, limit: int = 5) -> list[GenerationTask]:
models = (