pollutants edit db

This commit is contained in:
Youcef AOUAD committed 2024-06-05 11:35:41 +02:00
1 parent 37dd4ebaef
commit 1535247e1b
9 files changed
+19 -25

No files matched your search

@@ -64,6 +64,7 @@ class HydraulicStructure(SQLSubModel):
@classmethod
def _db_create(cls, execute):
execute("""
CREATE TABLE hydraulic_structures(
id INTEGER NOT NULL PRIMARY KEY,
@@ -138,6 +139,7 @@ class HydraulicStructure(SQLSubModel):
return new
def _db_save(self, execute, data=None):
print("save hs unit")
execute(f"DELETE FROM hydraulic_structures WHERE id = {self.id}")
input_reach_id = -1