Skip to content

Commit

Permalink
minor fix
Browse files Browse the repository at this point in the history
  • Loading branch information
jacquesfize committed Dec 15, 2023
1 parent bce2a14 commit 3106c2f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/pypnnomenclature/admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ def get_dynamic_options(self, view):
if has_app_context():
if not hasattr(g, "TNomenclatureFiltersType"):
bib_nomenc_labels = db.session.scalars(
db.select(BibNomenclaturesTypes).order_by(BibNomenclaturesTypes.label_default)
select(BibNomenclaturesTypes).order_by(BibNomenclaturesTypes.label_default)
).all()
g.TNomenclatureFiltersType = [
(nomenclature.id_type, nomenclature.label_default)
Expand All @@ -59,7 +59,7 @@ def get_dynamic_options(self, view):
if has_app_context():
if not hasattr(g, "TNomenclatureFiltersMnemonique"):
bib_nomenc_type = db.session.scalars(
db.select(BibNomenclaturesTypes).order_by(BibNomenclaturesTypes.mnemonique)
select(BibNomenclaturesTypes).order_by(BibNomenclaturesTypes.mnemonique)
).all()
g.TNomenclatureFiltersMnemonique = [
(nomenclature.id_type, nomenclature.mnemonique)
Expand Down

0 comments on commit 3106c2f

Please sign in to comment.