mirror of
https://gitlab.com/pamhyr/pamhyr2.git
synced 2026-10-30 03:20:41 +01:00
debug load study after deleting a node in the child scenario network
This commit is contained in:
1 parent
ab50d2adf4
commit
94ceb44fd4
2 files changed
+3
-3
No files matched your search
+2
-2
@@ -364,7 +364,7 @@ class RiverReach(Edge):
|
||||
)
|
||||
new.enable(enable=enabled)
|
||||
if deleted:
|
||||
nd.set_as_deleted()
|
||||
new.set_as_deleted()
|
||||
|
||||
data["reach"] = new
|
||||
new._reach = Reach._db_load(execute, data)
|
||||
@@ -549,7 +549,7 @@ class River(Graph):
|
||||
new._nodes = RiverNode._db_load(
|
||||
execute, data
|
||||
)
|
||||
data["nodes"] = new.nodes()
|
||||
data["nodes"] = new._nodes
|
||||
data['loaded_pid'] = set()
|
||||
|
||||
new._edges = RiverReach._db_load(
|
||||
|
||||
@@ -203,7 +203,7 @@ class SQLSubModel(PamhyrID):
|
||||
if self._status is None:
|
||||
return
|
||||
|
||||
# self._owner_scenario = self._status.scenario_id
|
||||
self._owner_scenario = self._status.scenario_id
|
||||
self._status.modified()
|
||||
|
||||
def set_owner_scenario(self):
|
||||
|
||||
Reference in new issue
Block a user