Skip to content

Commit c560a91

Browse files
committed
fix: get integer from find_all_taxons_childs()
1 parent 9b856ec commit c560a91

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

atlas/modeles/repositories/vmObservationsMaillesRepository.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ def getObservationsMaillesChilds(session, cd_ref, year_min=None, year_max=None):
1313
Retourne les mailles et le nombre d'observation par maille pour un taxon et ses enfants
1414
sous forme d'un geojson
1515
"""
16-
query = session.query(func.atlas.find_all_taxons_childs(cd_ref))
17-
taxons_ids = query.all()
16+
query = func.atlas.find_all_taxons_childs(cd_ref)
17+
taxons_ids = session.scalars(query).all()
1818
taxons_ids.append(cd_ref)
1919

2020
query = (

0 commit comments

Comments
 (0)