cotisation : vérification du courriel (corrige #13)
This commit is contained in:
parent
d120300cd1
commit
dcc10ea8c6
|
@ -184,14 +184,18 @@ def check_email_created(member):
|
|||
# Get member infos
|
||||
name, numero, email = get_member_infos(member)
|
||||
|
||||
request = { 'not[labels]' : "Résolu",
|
||||
'state' : "opened" }
|
||||
if numero < 15:
|
||||
return True
|
||||
|
||||
request = {
|
||||
'state' : "opened",
|
||||
'q' : "Création d'un compte courriel membre n°{}".format(numero)
|
||||
}
|
||||
answer = git_mail_ticket_read(request)
|
||||
|
||||
for ticket in answer:
|
||||
if "n°{}.".format(numero) in ticket['title']:
|
||||
return False
|
||||
return True
|
||||
if len(anwer) >= 1:
|
||||
return True
|
||||
return False
|
||||
|
||||
def notify_expired(member):
|
||||
BUF.append("* {}".format(member))
|
||||
|
@ -225,7 +229,8 @@ def notify_unpaid(member):
|
|||
return True
|
||||
|
||||
def renotify_unpaid(member):
|
||||
|
||||
if not check_email_created(member):
|
||||
return False
|
||||
# Get member infos
|
||||
name, numero, email = get_member_infos(member)
|
||||
amount = "{},{}".format(str(gestion_get_amount(member))[:-2],
|
||||
|
@ -320,7 +325,8 @@ def check_expired_unpaid():
|
|||
os.remove(WORKDIR+"/transition/"+record)
|
||||
|
||||
def validate(member):
|
||||
|
||||
if not check_email_created(member):
|
||||
return False
|
||||
# Get infos
|
||||
request = "SELECT *, l.reference true_reference " +\
|
||||
"FROM services_users su " +\
|
||||
|
|
Loading…
Reference in New Issue