diff --git a/copanier/config.py b/copanier/config.py index 48cbdbf..eeef361 100644 --- a/copanier/config.py +++ b/copanier/config.py @@ -11,7 +11,7 @@ SMTP_HOST = "mail.gandi.net" SMTP_PASSWORD = "" SMTP_LOGIN = "" FROM_EMAIL = "copanier@epinamap.org" -STAFF = ["yohanboniface@free.fr", "anne.mattler@wanadoo.fr"] +STAFF = [] LOCALE = "fr_FR.UTF-8" @@ -20,6 +20,8 @@ def init(): if key.isupper(): env_key = "COPANIER_" + key typ = type(value) + if typ == list: + typ = lambda x: x.split() if env_key in os.environ: globals()[key] = typ(os.environ[env_key]) locale.setlocale(locale.LC_ALL, LOCALE) diff --git a/remote/__main__.py b/remote/__main__.py index 0949f97..140988c 100644 --- a/remote/__main__.py +++ b/remote/__main__.py @@ -184,6 +184,7 @@ def upload_env(): "COPANIER_SEND_EMAILS": "1", "COPANIER_SMTP_PASSWORD": None, "COPANIER_SMTP_LOGIN": None, + "COPANIER_STAFF": None, } content = "" table = str.maketrans({'"': r"\""})