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