fix user counter and optimise profile picture getting

This commit is contained in:
Yasien Mac Mini 2026-07-02 11:01:59 +02:00
parent 62eafaf766
commit 1438dd6b5a
8 changed files with 39 additions and 85 deletions

View file

@ -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,