import utilisateurs à compléter: titre page de diagnostic et sendmail à cabler

This commit is contained in:
Jean-Marie Place 2021-08-22 15:25:25 +02:00
parent 96788d588e
commit edadbdf113

View File

@ -141,6 +141,10 @@ def import_users(users, auth_dept=""):
def append_msg(msg): def append_msg(msg):
msg_list.append("Ligne %s : %s" % (line, msg)) msg_list.append("Ligne %s : %s" % (line, msg))
if len(users) == 0:
ok = False
msg_list = ["Feuilles vide ou illisible"]
else:
created = [] # liste de uid créés created = [] # liste de uid créés
msg_list = [] msg_list = []
line = 1 # satr from excel line #2 line = 1 # satr from excel line #2