From 46670390b62c9e211e34eadf8d2dd5c04e9f6d5f Mon Sep 17 00:00:00 2001 From: Place Jean-Marie Date: Thu, 10 Jun 2021 07:04:56 +0200 Subject: [PATCH] extension code apogee multples pour UE --- sco_apogee_csv.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/sco_apogee_csv.py b/sco_apogee_csv.py index 45b71e92..22f12652 100644 --- a/sco_apogee_csv.py +++ b/sco_apogee_csv.py @@ -415,7 +415,7 @@ class ApoEtud(dict): # Elements UE decisions_ue = nt.get_etud_decision_ues(etudid) for ue in nt.get_ues(): - if ue["code_apogee"] == code: + if code in ue["code_apogee"].split(","): if self.export_res_ues: if decisions_ue and ue["ue_id"] in decisions_ue: ue_status = nt.get_etud_ue_status(etudid, ue["ue_id"]) @@ -436,7 +436,7 @@ class ApoEtud(dict): modimpls = nt.get_modimpls() module_code_found = False for modimpl in modimpls: - if modimpl["module"]["code_apogee"] == code: + if code in modimpl["module"]["code_apogee"].split(","): n = nt.get_etud_mod_moy(modimpl["moduleimpl_id"], etudid) if n != "NI" and self.export_res_modules: return dict(N=_apo_fmt_note(n), B=20, J="", R="") @@ -965,13 +965,13 @@ class ApoData: self.context, sem["formsemestre_id"] ) for ue in nt.get_ues(): - if ue["code_apogee"] == code: + if code in ue["code_apogee"].split(","): s.add(code) continue # associé à un module: modimpls = nt.get_modimpls() for modimpl in modimpls: - if modimpl["module"]["code_apogee"] == code: + if code in modimpl["module"]["code_apogee"].split(","): s.add(code) continue # log('codes_by_sem=%s' % pprint.pformat(codes_by_sem))