mirror of
https://gitlab.com/pamhyr/pamhyr2.git
synced 2026-10-30 03:20:41 +01:00
BC: Add scenario support.
This commit is contained in:
1 parent
e73f76024e
commit
a5ecc2383c
6 files changed
+221
-86
No files matched your search
@@ -19,7 +19,7 @@
|
||||
from copy import copy
|
||||
from tools import trace, timer
|
||||
|
||||
from Model.Tools.PamhyrList import PamhyrModelListWithTab
|
||||
from Model.Tools.PamhyrListExt import PamhyrModelListWithTab
|
||||
from Model.Except import NotImplementedMethodeError
|
||||
|
||||
from Model.BoundaryCondition.BoundaryCondition import BoundaryCondition
|
||||
@@ -50,7 +50,10 @@ class BoundaryConditionList(PamhyrModelListWithTab):
|
||||
return new
|
||||
|
||||
def _db_save(self, execute, data=None):
|
||||
execute("DELETE FROM boundary_condition")
|
||||
execute(
|
||||
"DELETE FROM boundary_condition "
|
||||
f"WHERE scenario = {self._status.scenario_id}"
|
||||
)
|
||||
|
||||
for tab in self._tabs:
|
||||
data["tab"] = tab
|
||||
|
||||
Reference in new issue
Block a user