fix user counter and optimise profile picture getting
This commit is contained in:
parent
62eafaf766
commit
1438dd6b5a
8 changed files with 39 additions and 85 deletions
|
|
@ -8,15 +8,7 @@ minioSecret = os.getenv("MINIO_SECRET_KEY")
|
|||
minioEndpoint = os.getenv("MINIO_ENDPOINT", "mih-minio:9000")
|
||||
minioSecure = os.getenv("MINIO_SECURE", "False") in ("True")
|
||||
|
||||
def minioConnect(env):
|
||||
if(env == "Dev"):
|
||||
return Minio(
|
||||
endpoint=minioEndpoint,
|
||||
access_key=minioAccess,
|
||||
secret_key=minioSecret,
|
||||
secure=minioSecure,
|
||||
)
|
||||
else:
|
||||
def minioConnect():
|
||||
return Minio(
|
||||
endpoint=minioEndpoint,
|
||||
access_key=minioAccess,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue