Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replace Hydro Area error, Object instead of Hydro Area name #93

Closed
wants to merge 1 commit into from

Conversation

JulesGrillot
Copy link

Les zones hydrographiques n'apparaissaient pas sur notre instance.
image

Modifier la fonction __get_hydro_zones dans le fichier cards.py permet de remettre les bonnes valeurs dans la fiche :

image

def __get_hydro_zones(self):
return [
name
for name in DB.session.execute(
select(THydroArea.name)
.where(THydroArea.id_hydro == CorZhHydro.id_hydro, CorZhHydro.id_zh == self.id_zh)
.distinct()
).all()
]

@JulesGrillot JulesGrillot changed the title Replace Hydro Area error, QObject instead of Hydro Area name Replace Hydro Area error, Object instead of Hydro Area name Oct 8, 2024
@JulienCorny
Copy link
Contributor

Merci @JulesGrillot d'avoir remonté ce bug, on a intégré une correction ici : #98 donc je ferme la PR

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants