mirror of https://gitlab.com/pamhyr/pamhyr2
SL: Fix DB cleaning.
parent
7857a2ea61
commit
1ed6274f8b
|
|
@ -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}"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue