Skip to content

Commit

Permalink
fix: get integer from find_all_taxons_childs()
Browse files Browse the repository at this point in the history
  • Loading branch information
jpm-cbna committed Apr 16, 2024
1 parent 9b856ec commit c560a91
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions atlas/modeles/repositories/vmObservationsMaillesRepository.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ def getObservationsMaillesChilds(session, cd_ref, year_min=None, year_max=None):
Retourne les mailles et le nombre d'observation par maille pour un taxon et ses enfants
sous forme d'un geojson
"""
query = session.query(func.atlas.find_all_taxons_childs(cd_ref))
taxons_ids = query.all()
query = func.atlas.find_all_taxons_childs(cd_ref)
taxons_ids = session.scalars(query).all()
taxons_ids.append(cd_ref)

query = (
Expand Down

0 comments on commit c560a91

Please sign in to comment.