From b6de8f8631b698db6c92c4f8ec7abd22df53fd8d Mon Sep 17 00:00:00 2001 From: Emmanuel Viennet Date: Wed, 20 Jul 2022 06:23:42 +0200 Subject: [PATCH] =?UTF-8?q?Supprime=20set=5Fgroups=20(mal=20sp=C3=A9cifi?= =?UTF-8?q?=C3=A9e)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/api/partitions.py | 27 --------------------------- 1 file changed, 27 deletions(-) diff --git a/app/api/partitions.py b/app/api/partitions.py index 2bb313556..785701997 100644 --- a/app/api/partitions.py +++ b/app/api/partitions.py @@ -92,30 +92,3 @@ def etud_in_group(group_id: int, etat=None): ) return jsonify([etud.to_dict_short() for etud in query]) - - -@bp.route( - "/partitions/set_groups/partition//groups//delete/" - "/create/", - methods=["POST"], -) -@token_auth.login_required -@token_permission_required(Permission.APIEtudChangeGroups) -def set_groups( - partition_id: int, groups_lists: str, groups_to_delete: str, groups_to_create: str -): - """ - Set les groups - - partition_id : l'id d'une partition - groups_lists : membres de chaque groupe existant - groups_ti_delete : les groupes à supprimer - groups_to_create : les groupes à créer - """ - # Fonction utilisée : app.scodoc.sco_groups.setGroups() - try: - # Utilisation de la fonction setGroups - setGroups(partition_id, groups_lists, groups_to_create, groups_to_delete) - return error_response(200, message="Groups set") - except ValueError: - return error_response(404, message="Erreur")