mirror of
https://gitlab.com/pamhyr/pamhyr2.git
synced 2026-10-30 03:20:41 +01:00
SL: Minor fixes.
This commit is contained in:
1 parent
b0810f6eed
commit
bccbc41fe8
2 files changed
+9
-1
No files matched your search
@@ -143,7 +143,12 @@ class SedimentLayer(SQLSubModel):
|
||||
SedimentLayer._id_cnt = max(id, SedimentLayer._id_cnt+1)
|
||||
|
||||
def __str__(self):
|
||||
return f"{self.name} ({len(self)}) - {self.comment}"
|
||||
s = f"{self.name} ({len(self)})"
|
||||
|
||||
if self.comment != "":
|
||||
s += f" - {self.comment}"
|
||||
|
||||
return s
|
||||
|
||||
def __len__(self):
|
||||
return len(self._layers)
|
||||
|
||||
Reference in new issue
Block a user