From c17bc8b61b480f8b712095045ba0712c3c66e87d Mon Sep 17 00:00:00 2001 From: Emmanuel Viennet Date: Mon, 8 Apr 2024 16:26:38 +0200 Subject: [PATCH] Fix: liste semestres avec code --- app/scodoc/sco_dept.py | 2 +- sco_version.py | 2 +- tests/conftest.py | 1 + 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/app/scodoc/sco_dept.py b/app/scodoc/sco_dept.py index 9717a5b5..0097aaf4 100644 --- a/app/scodoc/sco_dept.py +++ b/app/scodoc/sco_dept.py @@ -192,7 +192,7 @@ def _sem_table_gt(formsemestres: Query, showcodes=False, fmt="html") -> GenTable "elt_sem_apo", ] if showcodes: - columns_ids = ("formsemestre_id",) + columns_ids + columns_ids.insert(0, "formsemestre_id") # prepend html_class = "stripe cell-border compact hover order-column table_leftalign semlist" if current_user.has_permission(Permission.EditApogee): diff --git a/sco_version.py b/sco_version.py index 6fe1e446..7a90360a 100644 --- a/sco_version.py +++ b/sco_version.py @@ -1,7 +1,7 @@ # -*- mode: python -*- # -*- coding: utf-8 -*- -SCOVERSION = "9.6.960" +SCOVERSION = "9.6.961" SCONAME = "ScoDoc" diff --git a/tests/conftest.py b/tests/conftest.py index e07a0256..26372dc9 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -12,6 +12,7 @@ from app.auth.models import User, Role from app.auth.models import get_super_admin from app.scodoc import notesdb as ndb import app.scodoc.sco_utils as scu +from app.views import ScoData RESOURCES_DIR = "/opt/scodoc/tests/ressources"