From 1459c6f7868b60496d74234e3d4ac649f1a134ea Mon Sep 17 00:00:00 2001 From: Mawoka Date: Sat, 17 Jun 2023 19:32:34 +0200 Subject: [PATCH] :rotating_light: Fixed deepsource issue --- classquiz/routers/storage.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/classquiz/routers/storage.py b/classquiz/routers/storage.py index af77032..d859233 100644 --- a/classquiz/routers/storage.py +++ b/classquiz/routers/storage.py @@ -161,8 +161,8 @@ async def upload_raw_file(request: Request, user: User = Depends(get_current_use ) # https://github.com/VirusTotal/vt-py/issues/119#issuecomment-1261246867 await storage.upload( - # skipcq: PYL-W0212 file_name=file_id.hex, + # skipcq: PYL-W0212 file_data=data_file._file, mime_type=request.headers.get("Content-Type"), )