dev@locazia: fix misprint

This commit is contained in:
user 2024-03-04 17:58:59 +03:00
parent 4d254d9bac
commit 084c679d06
1 changed files with 1 additions and 1 deletions

View File

@ -77,7 +77,7 @@ async def s_api_v1_storage_get(request, file_hash=None):
if not content: if not content:
return response.json({"error": "File not found"}, status=404) return response.json({"error": "File not found"}, status=404)
make_log(f"File {content_sha256} requested by {request.ip}") make_log("Storage", f"File {content_sha256} requested by {request.ip}")
file_path = os.path.join(UPLOADS_DIR, content_sha256) file_path = os.path.join(UPLOADS_DIR, content_sha256)
if not os.path.exists(file_path): if not os.path.exists(file_path):
return response.json({"error": "File not found"}, status=404) return response.json({"error": "File not found"}, status=404)