1
0
forked from ScoDoc/ScoDoc

Cosmetic: BUT SAE apres res.

This commit is contained in:
Emmanuel Viennet 2022-12-16 23:23:52 -03:00
parent 6b7a48f0d1
commit 3e0a93ec7b

View File

@ -77,9 +77,7 @@ def df_load_module_coefs(formation_id: int, semestre_idx: int = None) -> pd.Data
& (UniteEns.type == sco_codes_parcours.UE_SPORT) & (UniteEns.type == sco_codes_parcours.UE_SPORT)
) )
) )
.order_by( .order_by(Module.semestre_id, Module.module_type, Module.numero, Module.code)
Module.semestre_id, Module.module_type.desc(), Module.numero, Module.code
)
) )
if semestre_idx is not None: if semestre_idx is not None:
ues = ues.filter_by(semestre_idx=semestre_idx) ues = ues.filter_by(semestre_idx=semestre_idx)