From 6b3f4be3c0055e562a476e39c0d867970432fdfe Mon Sep 17 00:00:00 2001
From: Paul-louis Gomis <paullouis.gomis.etu@univ-lille.fr>
Date: Tue, 25 Feb 2025 11:02:05 +0100
Subject: [PATCH] ajout d'un parametre "afficher moyenne generale indicative"
 au formulaire de parametrage

---
 Compte rendu/Compte rendu.md  |  2 ++
 app/scodoc/sco_preferences.py | 11 +++++++++++
 2 files changed, 13 insertions(+)

diff --git a/Compte rendu/Compte rendu.md b/Compte rendu/Compte rendu.md
index 10bee905..acd3e164 100644
--- a/Compte rendu/Compte rendu.md	
+++ b/Compte rendu/Compte rendu.md	
@@ -29,3 +29,5 @@ Le paramêtre permettant de changer le calcul de la moyenne est dans la page de
 
 ### 2.2 Analyse de la solution
 
+Les paramètres sont stockés dans le fichier app/scodoc/sco_preferences.py
+plus précisément dans le tableau self.prefs_definition
\ No newline at end of file
diff --git a/app/scodoc/sco_preferences.py b/app/scodoc/sco_preferences.py
index 2cf1794c..49fa8758 100644
--- a/app/scodoc/sco_preferences.py
+++ b/app/scodoc/sco_preferences.py
@@ -1783,6 +1783,17 @@ class BasePreferences:
                     "category": "bul_but_pdf",
                 },
             ),
+            (
+                "bul_but_moy_gen_ind",
+                {
+                    "initvalue": 1,
+                    "title": "Bulletins BUT: afficher la moyenne générale indicative",
+                    "explanation": "pour qu'elle soit calculéé mais pas affichée sur les bulletins.",
+                    "input_type": "boolcheckbox",
+                    "labels": ["non", "oui"],
+                    "category": "bul_but_pdf",
+                },
+            ),
             # XXX A COMPLETER, voir sco_formsemestre_edit.py XXX
             # bul_mail
             (
-- 
GitLab