This commit is contained in:
Theophile Terraz committed 2025-09-25 17:01:01 +02:00
1 parent 1b2f98494b
commit 7d42c164fc
2 files changed
+12 -11

No files matched your search

+11 -10
View File
@@ -277,18 +277,19 @@ class SedimentLayer(SQLSubModel):
"FROM sedimentary_layer "
)
for row in table:
sl = cls(
id=row[0],
name=row[1],
comment=row[2],
status=data['status']
)
if table is not None:
for row in table:
sl = cls(
id=row[0],
name=row[1],
comment=row[2],
status=data['status']
)
data["sl"] = sl.id
sl._layers = Layer._db_load(execute, data)
data["sl"] = sl.id
sl._layers = Layer._db_load(execute, data)
new.append(sl)
new.append(sl)
return new