Commit 8ca1ac8f authored by Pierre-Antoine Rouby's avatar Pierre-Antoine Rouby
Browse files

Model, geometry: Monir change.

Showing with 4 additions and 2 deletions
+4 -2
...@@ -49,6 +49,9 @@ class Stricklers(SQLSubModel): ...@@ -49,6 +49,9 @@ class Stricklers(SQLSubModel):
"FROM stricklers" "FROM stricklers"
) )
if table is None:
return None
for row in table: for row in table:
name = row[0] name = row[0]
comment = row[1] comment = row[1]
......
...@@ -38,8 +38,7 @@ class StricklersList(SQLSubModel): ...@@ -38,8 +38,7 @@ class StricklersList(SQLSubModel):
return new return new
def _sql_save(self, execute, data = None): def _sql_save(self, execute, data = None):
if len(self._stricks) != 0: execute("DELETE FROM stricklers")
execute("DELETE FROM stricklers")
objs = self._stricks objs = self._stricks
return self._save_submodel(execute, objs, data) return self._save_submodel(execute, objs, data)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment