diff --git a/app/models/etudiants.py b/app/models/etudiants.py index ef470f3e..d818c8e9 100644 --- a/app/models/etudiants.py +++ b/app/models/etudiants.py @@ -542,8 +542,6 @@ class Identite(models.ScoDocModel): def inscriptions(self) -> list["FormSemestreInscription"]: "Liste des inscriptions à des formsemestres, triée, la plus récente en tête" - from app.models.formsemestre import FormSemestre, FormSemestreInscription - return ( FormSemestreInscription.query.join(FormSemestreInscription.formsemestre) .filter( @@ -569,8 +567,6 @@ class Identite(models.ScoDocModel): (il est rare qu'il y en ai plus d'une, mais c'est possible). Triées par date de début de semestre décroissante (le plus récent en premier). """ - from app.models.formsemestre import FormSemestre, FormSemestreInscription - return ( FormSemestreInscription.query.join(FormSemestreInscription.formsemestre) .filter( @@ -1099,6 +1095,5 @@ class EtudAnnotation(db.Model): return e -from app.models.formsemestre import FormSemestre -from app.models.modules import Module +from app.models.formsemestre import FormSemestre, FormSemestreInscription from app.models.moduleimpls import ModuleImpl, ModuleImplInscription diff --git a/app/scodoc/sco_formsemestre_validation.py b/app/scodoc/sco_formsemestre_validation.py index 4a5f34b4..16e8d529 100644 --- a/app/scodoc/sco_formsemestre_validation.py +++ b/app/scodoc/sco_formsemestre_validation.py @@ -57,14 +57,12 @@ from app.scodoc import html_sco_header from app.scodoc import sco_assiduites from app.scodoc import codes_cursus from app.scodoc import sco_cache -from app.scodoc import sco_edit_ue from app.scodoc import sco_etud from app.scodoc import sco_formsemestre from app.scodoc import sco_formsemestre_inscriptions from app.scodoc import sco_cursus from app.scodoc import sco_cursus_dut from app.scodoc.sco_cursus_dut import etud_est_inscrit_ue -from app.scodoc import sco_photos from app.scodoc import sco_preferences from app.scodoc import sco_pv_dict from app.scodoc.sco_permissions import Permission diff --git a/app/scodoc/sco_recapcomplet.py b/app/scodoc/sco_recapcomplet.py index b434c225..d320f5a7 100644 --- a/app/scodoc/sco_recapcomplet.py +++ b/app/scodoc/sco_recapcomplet.py @@ -110,7 +110,7 @@ def formsemestre_recapcomplet( force_publishing=force_publishing, ) - table_html, table, freq_codes_annuels = _formsemestre_recapcomplet_to_html( + table_html, _, freq_codes_annuels = _formsemestre_recapcomplet_to_html( formsemestre, filename=filename, mode_jury=mode_jury, diff --git a/app/tables/jury_recap.py b/app/tables/jury_recap.py index abe11e74..3b890db9 100644 --- a/app/tables/jury_recap.py +++ b/app/tables/jury_recap.py @@ -8,21 +8,16 @@ """ import collections -import time import numpy as np from flask import g, url_for from app.but import cursus_but from app.but import jury_but -from app.but.jury_but import ( - DecisionsProposeesAnnee, - DecisionsProposeesRCUE, - DecisionsProposeesUE, -) +from app.but.jury_but import DecisionsProposeesRCUE + from app.comp.res_compat import NotesTableCompat from app.models import ApcNiveau, UniteEns from app.models.etudiants import Identite -from app.models.formsemestre import FormSemestre from app.scodoc.codes_cursus import ( BUT_BARRE_RCUE, BUT_RCUE_SUFFISANT, @@ -112,9 +107,11 @@ class TableJury(TableRecap): row.add_cell( "autorisations_inscription", "Passage", - ", ".join("S" + str(i) for i in sorted(autorisations[etud.id])) - if etud.id in autorisations - else "", + ( + ", ".join("S" + str(i) for i in sorted(autorisations[etud.id])) + if etud.id in autorisations + else "" + ), group="jury_code_sem", classes=["recorded_code"], ) @@ -136,6 +133,7 @@ class TableJury(TableRecap): if not self.read_only else "voir"} décisions""", group="col_jury_link", classes=["fontred"] if a_saisir else [], + no_excel=True, target=url_for( "notes.formsemestre_validation_etud_form", scodoc_dept=g.scodoc_dept, @@ -278,6 +276,7 @@ class RowJury(RowRecap): f"