Skip to content

Commit

Permalink
fix #54: display conservation status label instead of id
Browse files Browse the repository at this point in the history
  • Loading branch information
ch-cbna committed Jan 16, 2024
1 parent 749a03d commit e4b45d1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backend/gn_module_priority_flora/repositories.py
Original file line number Diff line number Diff line change
Expand Up @@ -318,12 +318,12 @@ def _get_habitats_infos_query(self):
TApresence.id_ap.label("id_ap"),
TApresence.id_zp.label("id_zp"),
TApresence.area.label("area_ap"),
TApresence.id_nomenclature_habitat.label("conservation_status"),
habitat_type.c.type_habitat.label("habitat_type"),
perturbation_type.c.type_perturbation.label("perturbation_type"),
TNomenclatures.label_default.label("threat_level"),
TNomenclatures.cd_nomenclature.label("threat_level_code"),
TNomenclaturesHab.cd_nomenclature.label("habitat_favorable"),
TNomenclaturesHab.label_default.label("conservation_status")
)
.outerjoin(TZprospect, TZprospect.id_zp == TApresence.id_zp)
.outerjoin(CorApArea, CorApArea.id_ap == TApresence.id_ap)
Expand Down

0 comments on commit e4b45d1

Please sign in to comment.