1
0
forked from ScoDoc/ScoDoc

minor/cosmetic

This commit is contained in:
Emmanuel Viennet 2024-08-26 01:51:12 +02:00
parent 3b99081177
commit 95c455565d
2 changed files with 4 additions and 4 deletions

View File

@ -328,7 +328,7 @@ class releveBUT extends HTMLElement {
this.shadow.querySelector(".decision").innerHTML = "Décision jury: " + (data.semestre.decision?.code || ""); this.shadow.querySelector(".decision").innerHTML = "Décision jury: " + (data.semestre.decision?.code || "");
}*/ }*/
this.shadow.querySelector("#ects_tot").innerHTML = this.shadow.querySelector("#ects_tot").innerHTML =
"ECTS : " + "ECTS semestre : " +
(data.semestre.ECTS?.acquis ?? "-") + (data.semestre.ECTS?.acquis ?? "-") +
" / " + " / " +
(data.semestre.ECTS?.total ?? "-"); (data.semestre.ECTS?.total ?? "-");

View File

@ -27,8 +27,8 @@ set_scodoc_var_dir
# ------------ LOCALES (pour compat bases ScoDoc 7 et plus anciennes) # ------------ LOCALES (pour compat bases ScoDoc 7 et plus anciennes)
for locname in "en_US.UTF-8" for locname in "en_US.UTF-8"
do do
outname=$(echo ${locname//-/} | tr '[A-Z]' '[a-z]') outname=$(echo ${locname//-/} | tr '[:upper:]' '[:lower:]')
if [ "$(locale -a | grep -E -i ^${outname}$ | wc -l)" -lt 1 ] if [ "$(locale -a | grep -c -E -i ^${outname}$ )" -lt 1 ]
then then
echo adding $locname echo adding $locname
echo "$locname ${locname##*.}" >> /etc/locale.gen echo "$locname ${locname##*.}" >> /etc/locale.gen
@ -40,7 +40,7 @@ echo "debian postinst: scodoc9 systemd service is $(systemctl is-active scodoc9)
systemctl restart postgresql systemctl restart postgresql
# Le numero de version complet, genre 9.0.0 # Le numero de version complet, genre 9.0.0
SCODOC_RELEASE=$(grep SCOVERSION $SCODOC_DIR/sco_version.py | awk '{ print substr($3, 2, length($3)-2) }') SCODOC_RELEASE=$(grep SCOVERSION "$SCODOC_DIR/sco_version.py" | awk '{ print substr($3, 2, length($3)-2) }')
if [ -e "${SCODOC_VERSION_DIR}/scodoc.sn" ] if [ -e "${SCODOC_VERSION_DIR}/scodoc.sn" ]
then then
# upgrading # upgrading