Update files.py

fix formatting
This commit is contained in:
jmtatsch 2025-04-27 11:18:27 +02:00 committed by GitHub
parent c51a91583e
commit 056a042ef2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -129,7 +129,15 @@ def upload_file(
ProcessFileForm(file_id=id, content=result.get("text", "")),
user=user,
)
elif file.content_type not in ["image/png", "image/jpeg", "image/gif", "video/mp4", "video/ogg", "video/quicktime", "video/webm"]:
elif file.content_type not in [
"image/png",
"image/jpeg",
"image/gif",
"video/mp4",
"video/ogg",
"video/quicktime",
"video/webm",
]:
process_file(request, ProcessFileForm(file_id=id), user=user)
file_item = Files.get_file_by_id(id=id)