Commit 149b150e authored by Pierre-Antoine Rouby's avatar Pierre-Antoine Rouby
Browse files

BHS: Fix where profile RK has changed.

No related merge requests found
Pipeline #59174 passed with stages
in 3 minutes and 26 seconds
Showing with 2 additions and 1 deletion
+2 -1
...@@ -155,7 +155,8 @@ class BasicHydraulicStructuresWindow(PamhyrWindow): ...@@ -155,7 +155,8 @@ class BasicHydraulicStructuresWindow(PamhyrWindow):
profiles = reach.reach.get_profiles_from_rk(float(profile_rk)) profiles = reach.reach.get_profiles_from_rk(float(profile_rk))
else: else:
profiles = None profiles = None
if profiles is not None:
if profiles is not None or len(profiles) != 0:
profile = profiles[0] profile = profiles[0]
else: else:
profile = None profile = None
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment