From 58b144e7fedec5208848d8bb661c29d3b25ab51a Mon Sep 17 00:00:00 2001 From: Jacobe2169 Date: Tue, 19 Dec 2023 11:21:24 +0100 Subject: [PATCH] fix test --- src/pypnnomenclature/repository.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pypnnomenclature/repository.py b/src/pypnnomenclature/repository.py index 85e3686..d2249f1 100644 --- a/src/pypnnomenclature/repository.py +++ b/src/pypnnomenclature/repository.py @@ -111,7 +111,7 @@ def get_nomenclature_with_taxonomy_list(): q = select(BibNomenclaturesTypeTaxo).order_by("mnemonique") - nomenclature_types = db.session.scalars(q).all() + nomenclature_types = db.session.scalars(q).unique().all() data = list() for t in nomenclature_types: