IC: Add scenario support.

This commit is contained in:
Pierre-Antoine Rouby committed 2024-09-17 12:01:02 +02:00
1 parent a5ecc2383c
commit a2ff3ecd9a
4 files changed
+85 -70

No files matched your search

@@ -75,7 +75,7 @@ class Data(SQLSubModel):
cls._db_update_to_0_1_0(execute, data)
if major == "0" and minor == "1":
if release < 2:
if int(release) < 2:
execute(
"ALTER TABLE boundary_condition_data " +
"ADD COLUMN deleted BOOLEAN NOT NULL DEFAULT FALSE"
@@ -174,6 +174,9 @@ class Data(SQLSubModel):
return new
def _db_save(self, execute, data=None):
if not self.must_be_saved():
return True
pid = self._pamhyr_id
ind = data["ind"]
data0 = self._db_format(str(self[0]))