forked from ScoDoc/ScoDoc
bul: lien vers page module
This commit is contained in:
parent
fa4dcb3169
commit
6cc76037a6
@ -5,6 +5,7 @@
|
||||
##############################################################################
|
||||
|
||||
import datetime
|
||||
from flask import url_for, g
|
||||
import numpy as np
|
||||
import pandas as pd
|
||||
|
||||
@ -144,6 +145,11 @@ class ResultatsSemestreBUT:
|
||||
"id": mi.id,
|
||||
"titre": mi.module.titre,
|
||||
"code_apogee": mi.module.code_apogee,
|
||||
"url": url_for(
|
||||
"notes.moduleimpl_status",
|
||||
scodoc_dept=g.scodoc_dept,
|
||||
moduleimpl_id=mi.id,
|
||||
),
|
||||
"moyenne": {
|
||||
"value": fmt_note(self.sem_cube[etud_idx, mod_idx].mean()),
|
||||
"min": fmt_note(moyennes_etuds.min()),
|
||||
|
@ -139,9 +139,10 @@ function showSynthese(data) {
|
||||
let output = "";
|
||||
Object.entries(modules).forEach(([module, dataModule]) => {
|
||||
let titre = data.ressources[module]?.titre || data.saes[module]?.titre;
|
||||
let url = data.ressources[module]?.url || data.saes[module]?.url;
|
||||
output += `
|
||||
<div class=syntheseModule>
|
||||
<div>${module} - ${titre}</div>
|
||||
<div><a href="${url}">${module} - ${titre}</a></div>
|
||||
<div>
|
||||
${dataModule.moyenne}
|
||||
<em>Coef. ${dataModule.coef}</em>
|
||||
@ -165,7 +166,7 @@ function showEvaluations(data) {
|
||||
output += `
|
||||
<div>
|
||||
<div class=module>
|
||||
<h3>${numero} - ${content.titre}</h3>
|
||||
<h3><a href="${content.url}">${numero} - ${content.titre}</a></h3>
|
||||
<div>
|
||||
<div class=moyenne>Moyenne indicative : ${content.moyenne.value}</div>
|
||||
<div class=info>
|
||||
|
Loading…
Reference in New Issue
Block a user