forked from ScoDoc/ScoDoc
cas tables vides
This commit is contained in:
parent
4993ce955f
commit
50f1698195
@ -57,7 +57,7 @@ class TableJury(TableRecap):
|
||||
# Stats jury: fréquence de chaque code enregistré
|
||||
self.freq_codes_annuels = collections.Counter()
|
||||
# Ajout colonnes spécifiques à la table jury:
|
||||
|
||||
if self.rows: # non vide
|
||||
if self.res.is_apc:
|
||||
self.add_rcues()
|
||||
self.add_jury()
|
||||
@ -73,7 +73,6 @@ class TableJury(TableRecap):
|
||||
"""
|
||||
self.insert_group("rcue", before="col_ues_validables")
|
||||
for row in self.rows:
|
||||
etud: Identite = row.etud
|
||||
deca = row.deca
|
||||
if deca.code_valide:
|
||||
self.freq_codes_annuels[deca.code_valide] += 1
|
||||
|
@ -2802,7 +2802,7 @@ def formsemestre_saisie_jury(formsemestre_id: int, selected_etudid: int = None):
|
||||
read_only = not sco_permissions_check.can_validate_sem(formsemestre_id)
|
||||
formsemestre = FormSemestre.query.get_or_404(formsemestre_id)
|
||||
if formsemestre.formation.is_apc() and formsemestre.semestre_id % 2 == 0:
|
||||
return jury_but_recap.formsemestre_saisie_jury_but(
|
||||
return jury_recap.formsemestre_saisie_jury_but(
|
||||
formsemestre, read_only, selected_etudid=selected_etudid
|
||||
)
|
||||
return redirect(
|
||||
|
Loading…
Reference in New Issue
Block a user