mirror of
https://gitlab.com/pamhyr/pamhyr2.git
synced 2026-10-30 03:20:41 +01:00
SL: Fix DB cleaning.
This commit is contained in:
1 parent
7857a2ea61
commit
1ed6274f8b
1 file changed
+2
-2
@@ -36,11 +36,11 @@ class SedimentLayerList(PamhyrModelList):
|
|||||||
|
|
||||||
def _db_save(self, execute, data=None):
|
def _db_save(self, execute, data=None):
|
||||||
execute(
|
execute(
|
||||||
"DELETE FROM sedimentary_layer" +
|
"DELETE FROM sedimentary_layer " +
|
||||||
f"WHERE scenario = {self._status.scenario_id}"
|
f"WHERE scenario = {self._status.scenario_id}"
|
||||||
)
|
)
|
||||||
execute(
|
execute(
|
||||||
"DELETE FROM sedimentary_layer_layer" +
|
"DELETE FROM sedimentary_layer_layer " +
|
||||||
f"WHERE scenario = {self._status.scenario_id}"
|
f"WHERE scenario = {self._status.scenario_id}"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user