mirror of
https://gitlab.com/pamhyr/pamhyr2.git
synced 2026-10-30 03:20:41 +01:00
HS: Minor fix add method.
This commit is contained in:
1 parent
4c5281ea30
commit
e41c23120a
1 file changed
+4
-1
@@ -24,6 +24,9 @@ from Model.Tools.PamhyrDB import SQLSubModel
|
||||
from Model.Except import NotImplementedMethodeError
|
||||
|
||||
from Model.HydraulicStructures.Basic.HydraulicStructures import BasicHS
|
||||
from Model.HydraulicStructures.Basic.Types import (
|
||||
NotDefined,
|
||||
)
|
||||
|
||||
logger = logging.getLogger()
|
||||
|
||||
@@ -231,7 +234,7 @@ class HydraulicStructure(SQLSubModel):
|
||||
return self._data.copy()
|
||||
|
||||
def add(self, index: int):
|
||||
value = BasicHS(status=self._status)
|
||||
value = NotDefined(status=self._status)
|
||||
self._data.insert(index, value)
|
||||
self._status.modified()
|
||||
return value
|
||||
|
||||
Reference in new issue
Block a user