2022-03-02 16:45:47 +01:00
|
|
|
#################################################### Jury #############################################################
|
|
|
|
from flask import jsonify
|
|
|
|
|
|
|
|
from app import models
|
|
|
|
from app.api import bp
|
|
|
|
from app.api.errors import error_response
|
2022-04-25 15:25:45 +02:00
|
|
|
from app.api.auth import token_permission_required
|
2022-03-02 16:45:47 +01:00
|
|
|
from app.scodoc.sco_prepajury import feuille_preparation_jury
|
|
|
|
from app.scodoc.sco_pvjury import formsemestre_pvjury
|
|
|
|
|
|
|
|
|
|
|
|
@bp.route("/jury/formsemestre/<int:formsemestre_id>/preparation_jury", methods=["GET"])
|
2022-04-27 15:29:09 +02:00
|
|
|
# @token_permission_required(Permission.?)
|
2022-04-25 15:25:45 +02:00
|
|
|
def jury_preparation(formsemestre_id: int):
|
2022-03-02 16:45:47 +01:00
|
|
|
"""
|
|
|
|
Retourne la feuille de préparation du jury
|
|
|
|
|
|
|
|
formsemestre_id : l'id d'un formsemestre
|
|
|
|
"""
|
|
|
|
# Fonction utilisée : app.scodoc.sco_prepajury.feuille_preparation_jury()
|
|
|
|
|
|
|
|
# Utilisation de la fonction feuille_preparation_jury
|
|
|
|
prepa_jury = feuille_preparation_jury(formsemestre_id)
|
|
|
|
|
|
|
|
return error_response(501, message="Not implemented")
|
|
|
|
|
|
|
|
|
|
|
|
@bp.route("/jury/formsemestre/<int:formsemestre_id>/decisions_jury", methods=["GET"])
|
2022-04-27 15:29:09 +02:00
|
|
|
# @token_permission_required(Permission.?)
|
2022-04-25 15:25:45 +02:00
|
|
|
def jury_decisions(formsemestre_id: int):
|
2022-03-02 16:45:47 +01:00
|
|
|
"""
|
|
|
|
Retourne les décisions du jury suivant un formsemestre donné
|
|
|
|
|
|
|
|
formsemestre_id : l'id d'un formsemestre
|
|
|
|
"""
|
|
|
|
# Fonction utilisée : app.scodoc.sco_pvjury.formsemestre_pvjury()
|
|
|
|
|
|
|
|
# Utilisation de la fonction formsemestre_pvjury
|
|
|
|
decision_jury = formsemestre_pvjury(formsemestre_id)
|
|
|
|
|
|
|
|
return error_response(501, message="Not implemented")
|