mirror of
https://gitlab.com/pamhyr/pamhyr2.git
synced 2026-10-30 03:20:41 +01:00
SL: Add scenario support.
This commit is contained in:
1 parent
c01effbf4c
commit
7857a2ea61
5 files changed
+167
-65
No files matched your search
@@ -341,7 +341,7 @@ class BoundaryCondition(SQLSubModel):
|
||||
owner_scenario=owner_scenario
|
||||
)
|
||||
if deleted:
|
||||
f.set_as_deleted()
|
||||
bc.set_as_deleted()
|
||||
|
||||
bc.node = None
|
||||
if node != -1:
|
||||
@@ -549,6 +549,12 @@ class BoundaryCondition(SQLSubModel):
|
||||
|
||||
self.modified()
|
||||
|
||||
def undelete(self, els):
|
||||
for el in els:
|
||||
el.set_as_not_deleted()
|
||||
|
||||
self.modified()
|
||||
|
||||
def sort(self, _reverse=False, key=None):
|
||||
if key is None:
|
||||
self._data.sort(reverse=_reverse)
|
||||
|
||||
Reference in new issue
Block a user