ScoDoc-Lille/app/but/jury_export.py

33 lines
966 B
Python
Raw Normal View History

2023-11-18 08:55:23 +01:00
##############################################################################
# ScoDoc
# Copyright (c) 1999 - 2023 Emmanuel Viennet. All rights reserved.
# See LICENSE
##############################################################################
"""Feuille d'export Jury BUT
"""
import datetime
2023-11-20 13:49:01 +01:00
from flask import render_template, url_for
2023-11-18 08:55:23 +01:00
2023-11-20 13:49:01 +01:00
import app
2023-11-20 14:45:46 +01:00
from app import Departement
2023-11-18 08:55:23 +01:00
from app.models import FormSemestre, FormSemestreInscription
from app.views import ScoData
def feuille_preparation_jury_but(formsemestre_id: int):
formsemestre: FormSemestre = FormSemestre.query.filter_by(
id=formsemestre_id
).first_or_404()
2023-11-20 14:45:46 +01:00
departement: Departement = Departement.query.filter_by(
id=formsemestre.dept_id
).first_or_404()
2023-11-18 08:55:23 +01:00
return render_template(
"but/jury_export.j2",
datetime=datetime,
formsemestre=formsemestre,
2023-11-20 14:45:46 +01:00
dept = departement.acronym,
2023-11-18 08:55:23 +01:00
sco=ScoData(formsemestre=formsemestre),
)