From 398925464afcdeca01c5e53c4b794511218b6042 Mon Sep 17 00:00:00 2001 From: "Adrien Bourmault (neox)" Date: Sat, 4 Nov 2023 16:06:01 +0100 Subject: [PATCH] =?UTF-8?q?cotisation=20:=20v=C3=A9rification=20du=20courr?= =?UTF-8?q?iel=20(3)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- controle_cotisation/main.py | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/controle_cotisation/main.py b/controle_cotisation/main.py index 80ea459..e04a3d7 100755 --- a/controle_cotisation/main.py +++ b/controle_cotisation/main.py @@ -188,12 +188,19 @@ def check_email_created(member): return True request = { - 'state' : "opened", + 'state' : "open", + 'labels' : [968], 'q' : "Création d'un compte courriel membre n°{}".format(numero) } - answer = git_mail_ticket_read(request) + answer1 = git_mail_ticket_read(request) - if len(answer) >= 1: + request = { + 'state' : "closed", + 'q' : "Création d'un compte courriel membre n°{}".format(numero) + } + answer2 = git_mail_ticket_read(request) + + if len(answer1) + len(answer2) >= 1: return True return False