From c36a20c8b35f1200e6ab7d6e129fd5b9048f062d Mon Sep 17 00:00:00 2001 From: Emmanuel Viennet Date: Sat, 25 Jun 2022 17:18:05 +0200 Subject: [PATCH] =?UTF-8?q?9.3.0=20|=20avec=20page=20d=C3=A9cision=20jury?= =?UTF-8?q?=20provisoire?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/scodoc/sco_pvjury.py | 15 ++++++++++++++- sco_version.py | 2 +- 2 files changed, 15 insertions(+), 2 deletions(-) diff --git a/app/scodoc/sco_pvjury.py b/app/scodoc/sco_pvjury.py index 7ddc0aa1d..fcc647b78 100644 --- a/app/scodoc/sco_pvjury.py +++ b/app/scodoc/sco_pvjury.py @@ -52,7 +52,7 @@ from reportlab.platypus import Paragraph from reportlab.lib import styles import flask -from flask import url_for, g, request +from flask import url_for, g, redirect, request from app.comp import res_sem from app.comp.res_compat import NotesTableCompat @@ -493,6 +493,19 @@ def pvjury_table( def formsemestre_pvjury(formsemestre_id, format="html", publish=True): """Page récapitulant les décisions de jury""" + + # Bretelle provisoire pour BUT 9.3.0 + # XXX TODO + formsemestre = FormSemestre.query.get_or_404(formsemestre_id) + if formsemestre.formation.is_apc() and formsemestre.semestre_id % 2 == 0: + return redirect( + url_for( + "notes.formsemestre_jury_but_recap", + scodoc_dept=g.scodoc_dept, + formsemestre_id=formsemestre_id, + ) + ) + # /XXX footer = html_sco_header.sco_footer() dpv = dict_pvjury(formsemestre_id, with_prev=True) diff --git a/sco_version.py b/sco_version.py index 08d97f4c8..c0169257c 100644 --- a/sco_version.py +++ b/sco_version.py @@ -1,7 +1,7 @@ # -*- mode: python -*- # -*- coding: utf-8 -*- -SCOVERSION = "9.3a" +SCOVERSION = "9.3.0b" SCONAME = "ScoDoc"