mirror of
https://gitlab.com/pamhyr/pamhyr2.git
synced 2026-10-30 03:20:41 +01:00
BC: Fix paste command.
This commit is contained in:
1 parent
ce5808e3ce
commit
fd0a8ddf51
2 files changed
+3
-1
No files matched your search
@@ -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
|
||||
|
||||
|
||||
Reference in new issue
Block a user