From 04c643561bcf9efb3ec81ef31d8504ea5c77a2fa Mon Sep 17 00:00:00 2001 From: Yasien Mac Mini Date: Tue, 25 Nov 2025 16:05:53 +0200 Subject: [PATCH] minio storage uploud fix pt4 --- backend/routers/fileStorage.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/backend/routers/fileStorage.py b/backend/routers/fileStorage.py index a6f73110..791ebb25 100644 --- a/backend/routers/fileStorage.py +++ b/backend/routers/fileStorage.py @@ -200,7 +200,7 @@ async def upload_perscription_to_user(requestItem: claimStatementUploud, session def uploudFile(app_id, env, folder, fileName, extension, content): client = Minio_Storage.minioConnection.minioConnect(env) - found = client.bucket_exists("mih") + found = client.bucket_exists(bucket_name="mih") if not found: client.make_bucket("mih") else: @@ -217,7 +217,7 @@ def uploudMedCert(requestItem: medCertUploud): client = Minio_Storage.minioConnection.minioConnect(requestItem.env) generateMedCertPDF(requestItem) today = datetime.today().strftime('%Y-%m-%d') - found = client.bucket_exists("mih") + found = client.bucket_exists(bucket_name="mih") if not found: client.make_bucket("mih") else: @@ -294,7 +294,7 @@ def uploudPerscription(requestItem: perscriptionList): client = Minio_Storage.minioConnection.minioConnect(requestItem.env) generatePerscriptionPDF(requestItem) today = datetime.today().strftime('%Y-%m-%d') - found = client.bucket_exists("mih") + found = client.bucket_exists(bucket_name="mih") if not found: client.make_bucket("mih") else: @@ -400,7 +400,7 @@ def uploudClaimStatement(requestItem: claimStatementUploud): generateClaimStatementPDF(requestItem) today = datetime.today().strftime('%Y-%m-%d') - found = client.bucket_exists("mih") + found = client.bucket_exists(bucket_name="mih") if not found: client.make_bucket("mih") else: