forked from ScoDoc/ScoDoc
Compare commits
5 Commits
Author | SHA1 | Date | |
---|---|---|---|
632e285d26 | |||
96531f839c | |||
1dfe754793 | |||
e0188ebc2d | |||
c79eb6410a |
@ -471,9 +471,16 @@ class ApcNiveau(db.Model, XMLModel):
|
||||
for pn in parcour_niveaux
|
||||
]
|
||||
else:
|
||||
niveaux: list[ApcNiveau] = competence.niveaux.filter_by(
|
||||
annee=f"BUT{int(annee)}"
|
||||
).all()
|
||||
niveaux: list[ApcNiveau] = (
|
||||
ApcNiveau.query.filter_by(annee=f"BUT{int(annee)}")
|
||||
.join(ApcCompetence)
|
||||
.filter_by(id=competence.id)
|
||||
.join(ApcParcoursNiveauCompetence)
|
||||
.filter(ApcParcoursNiveauCompetence.niveau == ApcNiveau.ordre)
|
||||
.join(ApcAnneeParcours)
|
||||
.filter_by(parcours_id=parcour.id)
|
||||
.all()
|
||||
)
|
||||
_cache[key] = niveaux
|
||||
return niveaux
|
||||
|
||||
|
@ -23,7 +23,7 @@
|
||||
<section id="zoneChoix">
|
||||
<h2>Étudiants</h2>
|
||||
<details>
|
||||
<summary>Outils d'affections</summary>
|
||||
<summary>Outils d'affectation</summary>
|
||||
<div class="autoAffectation">
|
||||
<a href="students_groups_auto_assignment?formsemestre_id={{formsemestre.id}}"><svg
|
||||
xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none"
|
||||
|
@ -829,7 +829,7 @@
|
||||
sheet.column("K").width(20);
|
||||
sheet.column("L").width(20);
|
||||
|
||||
saveFile("Données groupes - " + formsemestre, workbook);
|
||||
saveFile("Donnees groupes - " + formsemestre, workbook);
|
||||
});
|
||||
}
|
||||
|
||||
@ -853,7 +853,7 @@
|
||||
colonne += 3;
|
||||
})
|
||||
|
||||
saveFile("Résultats groupes - " + formsemestre, workbook);
|
||||
saveFile("Resultats groupes - " + formsemestre, workbook);
|
||||
});
|
||||
}
|
||||
|
||||
|
@ -1,7 +1,7 @@
|
||||
# -*- mode: python -*-
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
SCOVERSION = "9.5.7"
|
||||
SCOVERSION = "9.5.8"
|
||||
|
||||
SCONAME = "ScoDoc"
|
||||
|
||||
|
@ -412,6 +412,7 @@ def delete_dept(dept, force=False): # delete-dept
|
||||
from app.scodoc import notesdb as ndb
|
||||
from app.scodoc import sco_dept
|
||||
|
||||
msg = ""
|
||||
db.reflect()
|
||||
ndb.open_db_connection()
|
||||
d = models.Departement.query.filter_by(acronym=dept).first()
|
||||
|
@ -6,14 +6,10 @@ Comptage des absences
|
||||
"""
|
||||
# test écrit par Fares Amer, mai 2021 et porté sur ScoDoc 8 en juillet 2021
|
||||
|
||||
import json
|
||||
|
||||
from tests.unit import sco_fake_gen
|
||||
|
||||
from app.scodoc import sco_abs, sco_formsemestre
|
||||
from app.scodoc import sco_abs_views
|
||||
from app.scodoc import sco_groups
|
||||
from app.views import absences
|
||||
|
||||
|
||||
def test_abs_counts(test_client):
|
||||
|
@ -134,6 +134,7 @@ def associe_modules_et_parcours(formation: Formation, formation_infos: dict):
|
||||
for module in formation.modules
|
||||
if re.match(code_module, module.code)
|
||||
]:
|
||||
if not parcour in module.parcours:
|
||||
module.parcours.append(parcour)
|
||||
db.session.add(module)
|
||||
db.session.commit()
|
||||
|
@ -59,10 +59,10 @@ SCODOC_USER=scodoc
|
||||
|
||||
# Tests unitaires lancés dans le répertoire de travail
|
||||
echo "TESTS UNITAIRES"
|
||||
(cd "$UNIT_TESTS_DIR"; pytest tests/unit)
|
||||
(cd "$UNIT_TESTS_DIR"; pytest tests/unit) || terminate "Erreur dans tests unitaires"
|
||||
|
||||
# Tests API
|
||||
(cd "$UNIT_TESTS_DIR"; tools/test_api.sh)
|
||||
(cd "$UNIT_TESTS_DIR"; tools/test_api.sh) || terminate "Erreur dans tests unitaires API"
|
||||
|
||||
|
||||
# Création répertoire du paquet, et de opt
|
||||
|
Loading…
Reference in New Issue
Block a user