Skip to content

Commit

Permalink
feat(api): propagate group3_inpn addition + TODOs
Browse files Browse the repository at this point in the history
  • Loading branch information
Maxime Vergez committed Jul 3, 2023
1 parent 2fcf6ff commit 381b51a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions apptax/taxonomie/routesbibattributs.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {}
Expand Down
3 changes: 3 additions & 0 deletions apptax/taxonomie/routestaxref.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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:
Expand Down

0 comments on commit 381b51a

Please sign in to comment.