[scodoc-devel] [SVN] Scolar : [1664] Fix: export Apogee si des etudiants n\'ont pas de NIP

eviennet at lipn.univ-paris13.fr eviennet at lipn.univ-paris13.fr
Dim 9 Juil 13:20:46 CEST 2017


Une pièce jointe HTML a été nettoyée...
URL: https://listes.univ-paris13.fr/pipermail/scodoc-devel/attachments/20170709/7e079055/attachment.htm 
-------------- section suivante --------------
Modified: branches/ScoDoc7/sco_semset.py
===================================================================
--- branches/ScoDoc7/sco_semset.py	2017-07-09 11:11:44 UTC (rev 1663)
+++ branches/ScoDoc7/sco_semset.py	2017-07-09 11:20:45 UTC (rev 1664)
@@ -181,13 +181,13 @@
     
     def load_etuds(self):
         context = self.context
-        self['etuds_without_nip'] = set()
+        self['etuds_without_nip'] = set() # etudids 
         self['jury_ok'] = True
         for sem in self.sems:
             nt = context._getNotesCache().get_NotesTable(context, sem['formsemestre_id'])
             sem['etuds'] = nt.identdict.values()
             sem['nips'] = { e['code_nip'] for e in sem['etuds'] if e['code_nip'] }
-            sem['etuds_without_nip'] = { e for e in sem['etuds'] if not e['code_nip'] }
+            sem['etuds_without_nip'] = { e['etudid'] for e in sem['etuds'] if not e['code_nip'] }
             self['etuds_without_nip'] |= sem['etuds_without_nip']
             sem['jury_ok'] = nt.all_etuds_have_sem_decisions()
             self['jury_ok'] &= sem['jury_ok']


Plus d'informations sur la liste de diffusion scodoc-devel