Replace tuple with dataclass

This commit is contained in:
2022-08-08 11:14:55 +02:00
parent 44bdd8ebd9
commit 0212937aa1
3 changed files with 28 additions and 22 deletions

View File

@ -45,7 +45,6 @@ async def upload_file(file: UploadFile = File(...)) -> Dict[str, str]:
Returns:
Returns a dict with the filename, or a link to the .html if it was a video.
"""
domain_url = ""
if file.content_type.startswith("video/"):
return await do_things(file)