SL: Fix DB cleaning.

scenarios
Pierre-Antoine Rouby 2024-09-18 11:25:47 +02:00
parent 7857a2ea61
commit 1ed6274f8b
1 changed files with 2 additions and 2 deletions

View File

@ -36,11 +36,11 @@ class SedimentLayerList(PamhyrModelList):
def _db_save(self, execute, data=None):
execute(
"DELETE FROM sedimentary_layer" +
"DELETE FROM sedimentary_layer " +
f"WHERE scenario = {self._status.scenario_id}"
)
execute(
"DELETE FROM sedimentary_layer_layer" +
"DELETE FROM sedimentary_layer_layer " +
f"WHERE scenario = {self._status.scenario_id}"
)