[autofix.ci] apply automated fixes

This commit is contained in:
autofix-ci[bot] 2026-05-05 09:57:10 +00:00 committed by GitHub
parent 6ef7685f5c
commit 06fcde7298
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -179,9 +179,7 @@ class FileService:
"""
with self._session_maker(expire_on_commit=False) as session:
upload_file = session.scalar(
select(UploadFile)
.where(UploadFile.id == file_id, UploadFile.tenant_id == tenant_id)
.limit(1)
select(UploadFile).where(UploadFile.id == file_id, UploadFile.tenant_id == tenant_id).limit(1)
)
if not upload_file: