1
0
forked from ScoDoc/ScoDoc

BUT: coef modules bonus non éditables

This commit is contained in:
Emmanuel Viennet 2022-03-19 14:22:52 +01:00
parent 6fc5a1e285
commit ede90c799d

View File

@ -37,6 +37,7 @@ from flask import current_app, g, request
from flask.templating import render_template
from flask_login import current_user
from werkzeug.utils import redirect
from app.scodoc.sco_codes_parcours import UE_SPORT
from config import Config
@ -111,7 +112,7 @@ def table_modules_ue_coefs(formation_id, semestre_idx=None):
"y": row,
"style": style,
"data": df[mod.id][ue.id] or "",
"editable": True,
"editable": mod.ue.type != UE_SPORT,
"module_id": mod.id,
"ue_id": ue.id,
}