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

BC: Fix paste command.

Showing with 3 additions and 1 deletion
+3 -1
......@@ -188,7 +188,7 @@ class BoundaryCondition(SQLSubModel):
@classmethod
def time_convert(cls, data):
if data is str and data.count(":") == 3:
if type(data) is str and data.count(":") == 3:
return old_pamhyr_date_to_timestamp(data)
return int(data)
......
......@@ -289,6 +289,8 @@ class EditBoundaryConditionWindow(PamhyrWindow):
def _paste(self):
header, data = self.parseClipboardTable()
logger.debug(f"paste: h:{header}, d:{data}")
if len(data) == 0:
return
......
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