DEUX typos bloquant la synchro Apogee que je venais de réparer

This commit is contained in:
Emmanuel Viennet 2021-09-13 23:36:56 +02:00
parent 31224d853e
commit cb3be8c80c
2 changed files with 3 additions and 3 deletions

View File

@ -401,7 +401,7 @@ def list_synch(sem, anneeapogee=None):
if not etud_apo:
etudid = key2etudid[key]
etuds = sco_etud.identite_list(cnx, {"etudid": etudid})
if not etud: # ? cela ne devrait pas arriver XXX
if not etuds: # ? cela ne devrait pas arriver XXX
log(f"XXX key2etud etudid={{etudid}}, type {{type(etudid)}}")
etud = etuds[0]
etud["inscrit"] = is_inscrit # checkbox state
@ -517,7 +517,7 @@ def list_all(etudsapo_set):
+ """, id AS etudid
FROM identite WHERE dept_id=%(dept_id)s
""",
{"dept_id", g.scodoc_dept_id},
{"dept_id": g.scodoc_dept_id},
)
key2etudid = dict([(x[0], x[1]) for x in cursor.fetchall()])
all_set = set(key2etudid.keys())

View File

@ -1,7 +1,7 @@
# -*- mode: python -*-
# -*- coding: utf-8 -*-
SCOVERSION = "9.0.21"
SCOVERSION = "9.0.22"
SCONAME = "ScoDoc"