forked from ScoDoc/ScoDoc
Merge branch 'master' of https://scodoc.org/git/ScoDoc/ScoDoc into api
This commit is contained in:
commit
6bab2c00ad
@ -220,8 +220,7 @@ class BonusSportAdditif(BonusSport):
|
|||||||
bonus_moy_arr = np.sum(
|
bonus_moy_arr = np.sum(
|
||||||
np.where(
|
np.where(
|
||||||
sem_modimpl_moys_inscrits > self.seuil_moy_gen,
|
sem_modimpl_moys_inscrits > self.seuil_moy_gen,
|
||||||
(sem_modimpl_moys_inscrits - self.seuil_comptage)
|
(sem_modimpl_moys_inscrits - seuil_comptage) * self.proportion_point,
|
||||||
* self.proportion_point,
|
|
||||||
0.0,
|
0.0,
|
||||||
),
|
),
|
||||||
axis=1,
|
axis=1,
|
||||||
|
@ -52,6 +52,7 @@ def html_edit_formation_apc(
|
|||||||
"""
|
"""
|
||||||
parcours = formation.get_parcours()
|
parcours = formation.get_parcours()
|
||||||
assert parcours.APC_SAE
|
assert parcours.APC_SAE
|
||||||
|
|
||||||
ressources = formation.modules.filter_by(module_type=ModuleType.RESSOURCE).order_by(
|
ressources = formation.modules.filter_by(module_type=ModuleType.RESSOURCE).order_by(
|
||||||
Module.semestre_id, Module.numero, Module.code
|
Module.semestre_id, Module.numero, Module.code
|
||||||
)
|
)
|
||||||
@ -68,6 +69,19 @@ def html_edit_formation_apc(
|
|||||||
).order_by(
|
).order_by(
|
||||||
Module.semestre_id, Module.module_type.desc(), Module.numero, Module.code
|
Module.semestre_id, Module.module_type.desc(), Module.numero, Module.code
|
||||||
)
|
)
|
||||||
|
|
||||||
|
ues_by_sem = {}
|
||||||
|
ects_by_sem = {}
|
||||||
|
for semestre_idx in semestre_ids:
|
||||||
|
ues_by_sem[semestre_idx] = formation.ues.filter_by(
|
||||||
|
semestre_idx=semestre_idx
|
||||||
|
).order_by(UniteEns.semestre_idx, UniteEns.numero, UniteEns.acronyme)
|
||||||
|
ects = [ue.ects for ue in ues_by_sem[semestre_idx]]
|
||||||
|
if None in ects:
|
||||||
|
ects_by_sem[semestre_idx] = '<span class="missing_ue_ects">manquant</span>'
|
||||||
|
else:
|
||||||
|
ects_by_sem[semestre_idx] = sum(ects)
|
||||||
|
|
||||||
arrow_up, arrow_down, arrow_none = sco_groups.get_arrow_icons_tags()
|
arrow_up, arrow_down, arrow_none = sco_groups.get_arrow_icons_tags()
|
||||||
|
|
||||||
icons = {
|
icons = {
|
||||||
@ -93,7 +107,8 @@ def html_edit_formation_apc(
|
|||||||
editable=editable,
|
editable=editable,
|
||||||
tag_editable=tag_editable,
|
tag_editable=tag_editable,
|
||||||
icons=icons,
|
icons=icons,
|
||||||
UniteEns=UniteEns,
|
ues_by_sem=ues_by_sem,
|
||||||
|
ects_by_sem=ects_by_sem,
|
||||||
),
|
),
|
||||||
]
|
]
|
||||||
for semestre_idx in semestre_ids:
|
for semestre_idx in semestre_ids:
|
||||||
|
@ -562,7 +562,7 @@ def module_edit(module_id=None):
|
|||||||
"code",
|
"code",
|
||||||
{
|
{
|
||||||
"size": 10,
|
"size": 10,
|
||||||
"explanation": "code du module (doit être unique dans la formation)",
|
"explanation": "code du module (issu du programme, exemple M1203 ou R2.01. Doit être unique dans la formation)",
|
||||||
"allow_null": False,
|
"allow_null": False,
|
||||||
"validator": lambda val, field, formation_id=formation_id: check_module_code_unicity(
|
"validator": lambda val, field, formation_id=formation_id: check_module_code_unicity(
|
||||||
val, field, formation_id, module_id=module_id
|
val, field, formation_id, module_id=module_id
|
||||||
@ -701,7 +701,10 @@ def module_edit(module_id=None):
|
|||||||
{
|
{
|
||||||
"title": "Code Apogée",
|
"title": "Code Apogée",
|
||||||
"size": 25,
|
"size": 25,
|
||||||
"explanation": "(optionnel) code élément pédagogique Apogée ou liste de codes ELP séparés par des virgules",
|
"explanation": """(optionnel) code élément pédagogique Apogée ou liste de codes ELP
|
||||||
|
séparés par des virgules (ce code est propre à chaque établissement, se rapprocher
|
||||||
|
du référent Apogée).
|
||||||
|
""",
|
||||||
"validator": lambda val, _: len(val) < APO_CODE_STR_LEN,
|
"validator": lambda val, _: len(val) < APO_CODE_STR_LEN,
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
|
@ -305,7 +305,7 @@ def ue_edit(ue_id=None, create=False, formation_id=None, default_semestre_idx=No
|
|||||||
(
|
(
|
||||||
"numero",
|
"numero",
|
||||||
{
|
{
|
||||||
"size": 2,
|
"size": 4,
|
||||||
"explanation": "numéro (1,2,3,4) de l'UE pour l'ordre d'affichage",
|
"explanation": "numéro (1,2,3,4) de l'UE pour l'ordre d'affichage",
|
||||||
"type": "int",
|
"type": "int",
|
||||||
},
|
},
|
||||||
@ -722,12 +722,12 @@ du programme" (menu "Semestre") si vous avez un semestre en cours);
|
|||||||
<a href="{url_for('notes.refcomp_show',
|
<a href="{url_for('notes.refcomp_show',
|
||||||
scodoc_dept=g.scodoc_dept, refcomp_id=formation.referentiel_competence.id)}">
|
scodoc_dept=g.scodoc_dept, refcomp_id=formation.referentiel_competence.id)}">
|
||||||
{formation.referentiel_competence.type_titre} {formation.referentiel_competence.specialite_long}
|
{formation.referentiel_competence.type_titre} {formation.referentiel_competence.specialite_long}
|
||||||
</a> """
|
</a> """
|
||||||
msg_refcomp = "changer"
|
msg_refcomp = "changer"
|
||||||
H.append(
|
H.append(
|
||||||
f"""
|
f"""
|
||||||
<ul>
|
<ul>
|
||||||
<li>{descr_refcomp} <a class="stdlink" href="{url_for('notes.refcomp_assoc_formation',
|
<li>{descr_refcomp} <a class="stdlink" href="{url_for('notes.refcomp_assoc_formation',
|
||||||
scodoc_dept=g.scodoc_dept, formation_id=formation_id)
|
scodoc_dept=g.scodoc_dept, formation_id=formation_id)
|
||||||
}">{msg_refcomp}</a>
|
}">{msg_refcomp}</a>
|
||||||
</li>
|
</li>
|
||||||
|
@ -3,11 +3,9 @@
|
|||||||
<div class="formation_list_ues">
|
<div class="formation_list_ues">
|
||||||
<div class="formation_list_ues_titre">Unités d'Enseignement (UEs)</div>
|
<div class="formation_list_ues_titre">Unités d'Enseignement (UEs)</div>
|
||||||
{% for semestre_idx in semestre_ids %}
|
{% for semestre_idx in semestre_ids %}
|
||||||
<div class="formation_list_ues_sem">Semestre S{{semestre_idx}}</div>
|
<div class="formation_list_ues_sem">Semestre S{{semestre_idx}} (ECTS: {{ects_by_sem[semestre_idx] | safe}})</div>
|
||||||
<ul class="apc_ue_list">
|
<ul class="apc_ue_list">
|
||||||
{% for ue in formation.ues.filter_by(semestre_idx=semestre_idx).order_by(
|
{% for ue in ues_by_sem[semestre_idx] %}
|
||||||
UniteEns.semestre_idx, UniteEns.numero, UniteEns.acronyme
|
|
||||||
) %}
|
|
||||||
<li class="notes_ue_list">
|
<li class="notes_ue_list">
|
||||||
{% if editable and not loop.first %}
|
{% if editable and not loop.first %}
|
||||||
<a href="{{ url_for('notes.ue_move',
|
<a href="{{ url_for('notes.ue_move',
|
||||||
|
@ -611,8 +611,7 @@ def SignaleAbsenceGrSemestre(
|
|||||||
"""<option value="%(modimpl_id)s" %(sel)s>%(modname)s</option>\n"""
|
"""<option value="%(modimpl_id)s" %(sel)s>%(modname)s</option>\n"""
|
||||||
% {
|
% {
|
||||||
"modimpl_id": modimpl["moduleimpl_id"],
|
"modimpl_id": modimpl["moduleimpl_id"],
|
||||||
"modname": modimpl["module"]["code"]
|
"modname": (modimpl["module"]["code"] or "")
|
||||||
or ""
|
|
||||||
+ " "
|
+ " "
|
||||||
+ (modimpl["module"]["abbrev"] or modimpl["module"]["titre"]),
|
+ (modimpl["module"]["abbrev"] or modimpl["module"]["titre"]),
|
||||||
"sel": sel,
|
"sel": sel,
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
# -*- mode: python -*-
|
# -*- mode: python -*-
|
||||||
# -*- coding: utf-8 -*-
|
# -*- coding: utf-8 -*-
|
||||||
|
|
||||||
SCOVERSION = "9.1.67"
|
SCOVERSION = "9.1.69"
|
||||||
|
|
||||||
SCONAME = "ScoDoc"
|
SCONAME = "ScoDoc"
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user