From 381b51a16ebd9980b643283bbfd0ac9730ef64c7 Mon Sep 17 00:00:00 2001 From: Maxime Vergez Date: Mon, 3 Jul 2023 18:15:26 +0200 Subject: [PATCH] feat(api): propagate group3_inpn addition + TODOs --- apptax/taxonomie/routesbibattributs.py | 1 + apptax/taxonomie/routestaxref.py | 3 +++ 2 files changed, 4 insertions(+) diff --git a/apptax/taxonomie/routesbibattributs.py b/apptax/taxonomie/routesbibattributs.py index ec9e81c4..c35156b3 100644 --- a/apptax/taxonomie/routesbibattributs.py +++ b/apptax/taxonomie/routesbibattributs.py @@ -34,6 +34,7 @@ def get_bibattributsbyTaxref(regne, group2_inpn=None): q = q.filter( or_(BibAttributs.group2_inpn == group2_inpn, BibAttributs.group2_inpn == None) ) + #TODO: ajouter group3_inpn ? results = q.all() attDict = {} diff --git a/apptax/taxonomie/routestaxref.py b/apptax/taxonomie/routestaxref.py index 0c88d799..cea0429d 100644 --- a/apptax/taxonomie/routestaxref.py +++ b/apptax/taxonomie/routestaxref.py @@ -145,6 +145,7 @@ def getTaxrefDetail(id): Taxref.nom_vern, Taxref.group1_inpn, Taxref.group2_inpn, + Taxref.group3_inpn, Taxref.id_rang, BibTaxrefRangs.nom_rang, BibTaxrefStatus.nom_statut, @@ -420,6 +421,8 @@ def get_AllTaxrefNameByListe(code_liste=None): if group2_inpn: q = q.filter(VMTaxrefListForautocomplete.group2_inpn == group2_inpn) + #TODO: add group3 here after migration + limit = request.args.get("limit", 20, int) page = request.args.get("page", 1, int) if "offset" in request.args: