minio storage uploud fix pt4
This commit is contained in:
parent
526bd40255
commit
04c643561b
1 changed files with 4 additions and 4 deletions
|
|
@ -200,7 +200,7 @@ async def upload_perscription_to_user(requestItem: claimStatementUploud, session
|
||||||
|
|
||||||
def uploudFile(app_id, env, folder, fileName, extension, content):
|
def uploudFile(app_id, env, folder, fileName, extension, content):
|
||||||
client = Minio_Storage.minioConnection.minioConnect(env)
|
client = Minio_Storage.minioConnection.minioConnect(env)
|
||||||
found = client.bucket_exists("mih")
|
found = client.bucket_exists(bucket_name="mih")
|
||||||
if not found:
|
if not found:
|
||||||
client.make_bucket("mih")
|
client.make_bucket("mih")
|
||||||
else:
|
else:
|
||||||
|
|
@ -217,7 +217,7 @@ def uploudMedCert(requestItem: medCertUploud):
|
||||||
client = Minio_Storage.minioConnection.minioConnect(requestItem.env)
|
client = Minio_Storage.minioConnection.minioConnect(requestItem.env)
|
||||||
generateMedCertPDF(requestItem)
|
generateMedCertPDF(requestItem)
|
||||||
today = datetime.today().strftime('%Y-%m-%d')
|
today = datetime.today().strftime('%Y-%m-%d')
|
||||||
found = client.bucket_exists("mih")
|
found = client.bucket_exists(bucket_name="mih")
|
||||||
if not found:
|
if not found:
|
||||||
client.make_bucket("mih")
|
client.make_bucket("mih")
|
||||||
else:
|
else:
|
||||||
|
|
@ -294,7 +294,7 @@ def uploudPerscription(requestItem: perscriptionList):
|
||||||
client = Minio_Storage.minioConnection.minioConnect(requestItem.env)
|
client = Minio_Storage.minioConnection.minioConnect(requestItem.env)
|
||||||
generatePerscriptionPDF(requestItem)
|
generatePerscriptionPDF(requestItem)
|
||||||
today = datetime.today().strftime('%Y-%m-%d')
|
today = datetime.today().strftime('%Y-%m-%d')
|
||||||
found = client.bucket_exists("mih")
|
found = client.bucket_exists(bucket_name="mih")
|
||||||
if not found:
|
if not found:
|
||||||
client.make_bucket("mih")
|
client.make_bucket("mih")
|
||||||
else:
|
else:
|
||||||
|
|
@ -400,7 +400,7 @@ def uploudClaimStatement(requestItem: claimStatementUploud):
|
||||||
|
|
||||||
generateClaimStatementPDF(requestItem)
|
generateClaimStatementPDF(requestItem)
|
||||||
today = datetime.today().strftime('%Y-%m-%d')
|
today = datetime.today().strftime('%Y-%m-%d')
|
||||||
found = client.bucket_exists("mih")
|
found = client.bucket_exists(bucket_name="mih")
|
||||||
if not found:
|
if not found:
|
||||||
client.make_bucket("mih")
|
client.make_bucket("mih")
|
||||||
else:
|
else:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue