1
0
forked from ScoDoc/ScoDoc

Désactive les moyennes par tag, autres que le tag but

This commit is contained in:
Cléo Baras 2024-01-16 08:54:20 +01:00
parent 2f81ce8ac2
commit 6d16927db9
3 changed files with 5 additions and 5 deletions

View File

@ -139,9 +139,9 @@ class SemestreTag(pe_tagtable.TableTag):
# Calcul des moyennes de chaque étudiant puis ajoute la moyenne au sens "DUT"
for tag in self.tagdict:
self.add_moyennesTag(tag, self.comp_MoyennesTag(tag, force=True))
self.add_moyennesTag("dut", self.get_moyennes_DUT())
self.add_moyennesTag("but", self.get_moyennes_DUT())
self.taglist = sorted(
list(self.tagdict.keys()) + ["dut"]
list(self.tagdict.keys()) + ["but"]
) # actualise la liste des tags
# -----------------------------------------------------------------------------
@ -168,7 +168,7 @@ class SemestreTag(pe_tagtable.TableTag):
"""
tagdict = {}
for modimpl in self.modimpls:
for modimpl in []: # CB: désactive la recherche des tags -> self.modimpls:
modimpl_id = modimpl.id
# liste des tags pour le modimpl concerné:
tags = sco_tag_module.module_tag_list(modimpl.module.id)

View File

@ -150,7 +150,7 @@ class SetTag(pe_tagtable.TableTag):
self.tagdict = {}
for semtag in self.SemTagDict.values():
for tag in semtag.get_all_tags():
if tag != "dut":
if tag != "but":
if tag not in self.tagdict:
self.tagdict[tag] = {}
for mod in semtag.tagdict[tag]:

View File

@ -96,7 +96,7 @@ def pe_view_sem_recap(
return _pe_view_sem_recap_form(formsemestre_id)
prefs = sco_preferences.SemPreferences(formsemestre_id=formsemestre_id)
semBase = sco_formsemestre.get_formsemestre(formsemestre_id)
semBase = sco_formsemestre.get_formsemestre(formsemestre_id) # FormSemestre.get_formsemestre()
jury = pe_jurype.JuryPE(semBase)
# Ajout avis LaTeX au même zip: