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

BC, LC: Disable time delegate (fix #23).

Showing with 6 additions and 2 deletions
+6 -2
......@@ -191,6 +191,8 @@ class BoundaryCondition(SQLSubModel):
if type(data) is str:
if data.count(":") == 3:
return old_pamhyr_date_to_timestamp(data)
if data.count(":") == 2:
return old_pamhyr_date_to_timestamp("00:" + data)
if data.count(".") == 1:
return round(float(data))
......
......@@ -191,6 +191,8 @@ class LateralContribution(SQLSubModel):
if type(data) is str:
if data.count(":") == 3:
return old_pamhyr_date_to_timestamp(data)
if data.count(":") == 2:
return old_pamhyr_date_to_timestamp("00:" + data)
if data.count(".") == 1:
return round(float(data))
......
......@@ -160,7 +160,7 @@ class EditBoundaryConditionWindow(PamhyrWindow):
table_headers=headers,
editable_headers=self._data.header,
delegates={
"time": self._delegate_time,
#"time": self._delegate_time,
},
data=self._data,
undo=self._undo_stack,
......
......@@ -101,7 +101,7 @@ class EditLateralContributionWindow(PamhyrWindow):
table_headers=headers,
editable_headers=self._data.header,
delegates={
"time": self._delegate_time,
#"time": self._delegate_time,
},
data=self._data,
undo=self._undo_stack,
......
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