1
0
mirror of https://gitlab.com/animath/si/plateforme.git synced 2025-06-30 00:31:09 +02:00

Teams must send their motivation letter

This commit is contained in:
Yohann D'ANELLO
2021-01-22 09:40:28 +01:00
parent 628f69e772
commit ce206998f0
12 changed files with 402 additions and 224 deletions

View File

@ -9,7 +9,7 @@ _client = None
def get_sympa_client():
global _client
if _client is None:
if os.getenv("SYMPA_PASSWORD", None) is not None: # pragma: no cover
if os.getenv("SYMPA_PASSWORD", None): # pragma: no cover
from sympasoap import Client
_client = Client("https://" + os.getenv("SYMPA_URL"))
_client.login(os.getenv("SYMPA_EMAIL"), os.getenv("SYMPA_PASSWORD"))