From ede90c799d2a44a92f24fe807b6a529166fde121 Mon Sep 17 00:00:00 2001 From: Emmanuel Viennet Date: Sat, 19 Mar 2022 14:22:52 +0100 Subject: [PATCH] =?UTF-8?q?BUT:=20coef=20modules=20bonus=20non=20=C3=A9dit?= =?UTF-8?q?ables?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/views/pn_modules.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/views/pn_modules.py b/app/views/pn_modules.py index 313d3d0d..36e9251b 100644 --- a/app/views/pn_modules.py +++ b/app/views/pn_modules.py @@ -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, }